Imports the public key from an RSA key pair created with a third-party tool. This operation differs from CreateKeyPair as the private key is never transferred between the caller and AWS servers.
RSA key pairs are easily created on Microsoft Windows and Linux OS systems using the ssh-keygen
command line tool provided with the standard OpenSSH installation. Standard library support for RSA
key pair creation is also available for Java, Ruby, Python, and many other programming languages.
The following formats are supported:
- OpenSSH public key format.
- Base64 encoded DER format.
- SSH public key file format as specified in RFC 4716.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
The unique name for the key pair. |
|
|
Required |
The public key portion of the key pair being imported. |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Related Methods
Source
Method defined in services/ec2.class.php | Toggle source view (8 lines) | View on GitHub