PrivateKeyState constructor
- Input<
String?> ? algorithm, - Input<
String?> ? ecdsaCurve, - Input<
String?> ? privateKeyOpenssh, - Input<
String?> ? privateKeyPem, - Input<
String?> ? privateKeyPemPkcs8, - Input<
String?> ? publicKeyFingerprintMd5, - Input<
String?> ? publicKeyFingerprintSha256, - Input<
String?> ? publicKeyOpenssh, - Input<
String?> ? publicKeyPem, - Input<
int?> ? rsaBits,
Creates a new PrivateKeyState.
algorithm Name of the algorithm to use when generating the private key. Currently-supported values are: RSA, ECDSA, ED25519.
ecdsaCurve When algorithm is ECDSA, the name of the elliptic curve to use. Currently-supported values are: P224, P256, P384, P521. (default: P224).
privateKeyOpenssh Private key data in OpenSSH PEM (RFC 4716) format.
privateKeyPem Private key data in PEM (RFC 1421) format.
privateKeyPemPkcs8 Private key data in PKCS#8 PEM (RFC 5208) format.
publicKeyFingerprintMd5 The fingerprint of the public key data in OpenSSH MD5 hash format, e.g. aa:bb:cc:.... Only available if the selected private key format is compatible, similarly to publicKeyOpenssh and the ECDSA P224 limitations.
publicKeyFingerprintSha256 The fingerprint of the public key data in OpenSSH SHA256 hash format, e.g. SHA256:.... Only available if the selected private key format is compatible, similarly to publicKeyOpenssh and the ECDSA P224 limitations.
publicKeyOpenssh The public key data in "Authorized Keys" format. This is not populated for ECDSA with curve P224, as it is not supported. NOTE: the underlying libraries that generate this value append a \n at the end of the PEM. In case this disrupts your use case, we recommend using trimspace().
publicKeyPem Public key data in PEM (RFC 1421) format. NOTE: the underlying libraries that generate this value append a \n at the end of the PEM. In case this disrupts your use case, we recommend using trimspace().
rsaBits When algorithm is RSA, the size of the generated RSA key, in bits (default: 2048).
Implementation
const PrivateKeyState({
this.algorithm,
this.ecdsaCurve,
this.privateKeyOpenssh,
this.privateKeyPem,
this.privateKeyPemPkcs8,
this.publicKeyFingerprintMd5,
this.publicKeyFingerprintSha256,
this.publicKeyOpenssh,
this.publicKeyPem,
this.rsaBits,
});