security login publickey modify
- PDF of this doc site
Collection of separate PDF docs
Creating your file...
Modify a public key
Availability: This command is available to cluster and Vserver administrators at the admin privilege level.
Description
The security login publickey modify
command modifies a public key and optionally its comment text and certificate.
Parameters
-vserver <vserver name>
- Vserver-
Specifies the Vserver for the user associated with the public key.
-username <text>
- Username-
Specifies the username for the public key. If you do not specify a username, the username 'admin' is used by default.
-application <text>
- Application-
Optionally specifies the application for which you are modifying the public key. Presently, the only supported value is
ssh
. The default value for this parameter isssh
. -index <integer>
- Index-
Specifies the index number of the public key. The index number of the public key can be found by using the security login publickey show command.
[-publickey <certificate>]
- Public Key-
Specifies the new public key. You must enclose the new public key in double quotation marks.
[-comment <text>]
- Comment-
Specifies the new comment text for the public key.
[-x509-certificate <text>]
- Install/Modify/Delete X509 Certificate-
This parameter is used to modify or delete an existing certificate.
Examples
The following command modifies the public key and certificate at index number 10 for the SSH user named tsmith of Vserver vs1.
cluster1::> security login publickey modify -vserver vs1 -username tsmith -index 10 -publickey "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDD+pFzFgV/2dlowKRFgym9K910H/u+BVTGitCtHteHyo8thmaXT 1GLCzaoC/12+XXiYKMRhJ00S9Svo4QQKUXHdCPXFSgR5PnAs39set39ECCLzmduplJnkWtX96pQH/bg2g3upFcdC6z9 c37uqFtNVPfv8As1Si/9WDQmEJ2mRtJudJeU5GZwZw5ybgTaN1jxDWus9SO2C43F/vmoCKVT529UHt4/ePcaaHOGTiQ O8+Qmm59uTgcfnpg53zYkpeAQV8RdYtMdWlRr44neh1WZrmW7x5N4nXNvtEzr9cvb9sJyqTX1CkQGfDOdb+7T7y3X7M if/qKQY6FsovjvfZD" -x509-certificate modify Please enter Certificate: Press <Enter> when done -----BEGIN CERTIFICATE----- MIIBYjCB6aADAgECAhRhhyz6AuV04M5nac2Pq+cdm4IRMzAKBggqhkjOPQQDAjAT MREwDwYDVQQDDAhhYmhpamVlMjAeFw0yMjEwMTkxNzI4MzZaFw0yMjEwMjAwMDAw MDBaMBMxETAPBgNVBAMMCGFiaGlqZWUyMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE xNEN5jC3IjAvR0kwsAyKXw7aBLwNg5nvDC1D2bRLpbZkoLQ6hzyKZUEqA0ELlQla u4yX9O1qiRIbMMclqMB1XYJywxOh+3uKOTM6Bz82/IZp4Oaa/4gYVtFRgStHTdPf MAoGCCqGSM49BAMCA2gAMGUCMQDQIgdSrECuWJ76ZvfEDAvFlHnJHQtNz8zFl0lh XRNzPlhpltEm6j5V6mPkRmJrmloCMGckXAVkmUCGFxU2e2ZvuKbL5BVCrE5iifet ly3UApgBg8EgTO+hebMNz3i/Z4p+5w== -----END CERTIFICATE-----"