Imports the public key from an RSA key pair created with a third-party tool.
Declaration Syntax
C# |
public class ImportKeyPairRequest : EC2Request
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
ImportKeyPairRequest()()()() | Initializes a new instance of the ImportKeyPairRequest class | |
Equals(Object) | (Inherited from Object.) | |
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | |
IsSetKeyName()()()() |
Checks if KeyName property is set
| |
IsSetPublicKeyMaterial()()()() |
Checks if PublicKeyMaterial property is set
| |
KeyName |
The unique name for the key pair.
| |
PublicKeyMaterial |
The public key.
The key must be base64 encoded.
| |
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) | |
WithKeyName(String) | Obsolete.
Sets the unique name for the key pair.
| |
WithPublicKeyMaterial(String) | Obsolete.
Sets the public key.
|
Remarks
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 RFC4716.
Inheritance Hierarchy
Object | ||
EC2Request | ||
ImportKeyPairRequest |