Adding More RESTCONF Users¶
To create additional RESTCONF users, only two actions are required on TNSR:
Generate a certificate for the new user, and then add the user to NACM. This
example adds a new user named anotheruser
.
Generate a new user certificate:
tnsr(config)# pki private-key anotheruser generate key-length 4096
tnsr(config)# pki signing-request settings clear
tnsr(config)# pki signing-request set common-name anotheruser
tnsr(config)# pki signing-request set digest sha512
tnsr(config)# pki signing-request anotheruser generate
tnsr(config)# pki signing-request anotheruser sign ca-name restconf-CA days-valid 365 digest sha512 purpose client
Add this user to the NACM admin
group:
tnsr(config)# nacm group admin
tnsr(config-nacm-group)# member anotheruser
tnsr(config-nacm-group)# exit
Then, the user certificate can be exported and copied to a new client and used as explained previously.