Skip to main content
A newer release of this product is available.

security login publickey load-from-uri

Contributors
Suggest changes

Load one or more public keys from a URI

Availability: This command is available to cluster and Vserver administrators at the admin privilege level.

Description

The security login publickey load-from-uri command loads one or more public keys from a Universal Resource Identifier (URI). To load public keys from a URI, you must specify a user name, the URI from which to load them, and optionally, whether you want to overwrite the existing public keys.

Parameters

-vserver <vserver name> - Vserver

This parameter optionally specifies the Vserver for the user associated with the public keys.

-username <text> - Username

This parameter specifies the username for the public keys. If you do not specify a username, the username "admin" is used by default.

-uri {(ftp|http|https)://(hostname|IPv4 Address|'['IPv6 Address']')…​} - URI to load from

This parameter specifies the URI from which the public keys will be loaded.

-overwrite {true|false} - Overwrite Entries

This parameter optionally specifies whether you want to overwrite existing public keys. The default value for this parameter is false . If the value is true and you confirm to overwrite, then the existing public keys are overwritten with the new public keys. If you use the value false or do not confirm the overwrite, then newly loaded public keys are appended to the list of existing public keys using the next available index.

Examples

The following command shows how to load public keys for the user named tsmith from the URI ftp://ftp.example.com/identity.pub. This user's existing public keys are not overwritten.

cluster1::> security login publickey load-from-uri -username tsmith
  -uri ftp://ftp.example.com/identity.pub -overwrite false

The following command shows how to load public keys for the user named tsmith from the URI ftp:ftp://ftp.example.com/identity.pub. This user's existing public keys are overwritten if user entered the option 'y' or 'Y'. The user's existing public keys are not overwritten if user entered the option 'n' or 'N' and the newly loaded public keys are appended to the list of existing public keys using the next available index. The user and password credentials that you provide when you use this command are the credentials to access the server specified by the URI.

cluster1::> security login publickey load-from-uri -username
  tsmith -uri ftp://ftp.example.com/identity.pub -overwrite true -vserver vs0

Enter User:
Enter Password:

Warning: You are about to overwrite the existing publickeys for the user
"tsmith" in Vserver "vs0". Do you want to proceed? {y|n}: