Struct aws_sdk_acm::client::fluent_builders::ExportCertificate
source · pub struct ExportCertificate { /* private fields */ }
Expand description
Fluent builder constructing a request to ExportCertificate
.
Exports a private certificate issued by a private certificate authority (CA) for use anywhere. The exported file contains the certificate, the certificate chain, and the encrypted private 2048-bit RSA key associated with the public key that is embedded in the certificate. For security, you must assign a passphrase for the private key when exporting it.
For information about exporting and formatting a certificate using the ACM console or CLI, see Export a Private Certificate.
Implementations§
source§impl ExportCertificate
impl ExportCertificate
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<ExportCertificate, AwsResponseRetryClassifier>, SdkError<ExportCertificateError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<ExportCertificate, AwsResponseRetryClassifier>, SdkError<ExportCertificateError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<ExportCertificateOutput, SdkError<ExportCertificateError>>
pub async fn send(
self
) -> Result<ExportCertificateOutput, SdkError<ExportCertificateError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn certificate_arn(self, input: impl Into<String>) -> Self
pub fn certificate_arn(self, input: impl Into<String>) -> Self
An Amazon Resource Name (ARN) of the issued certificate. This must be of the form:
arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012
sourcepub fn set_certificate_arn(self, input: Option<String>) -> Self
pub fn set_certificate_arn(self, input: Option<String>) -> Self
An Amazon Resource Name (ARN) of the issued certificate. This must be of the form:
arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012
sourcepub fn passphrase(self, input: Blob) -> Self
pub fn passphrase(self, input: Blob) -> Self
Passphrase to associate with the encrypted exported private key.
When creating your passphrase, you can use any ASCII character except #, $, or %.
If you want to later decrypt the private key, you must have the passphrase. You can use the following OpenSSL command to decrypt a private key. After entering the command, you are prompted for the passphrase.
openssl rsa -in encrypted_key.pem -out decrypted_key.pem
sourcepub fn set_passphrase(self, input: Option<Blob>) -> Self
pub fn set_passphrase(self, input: Option<Blob>) -> Self
Passphrase to associate with the encrypted exported private key.
When creating your passphrase, you can use any ASCII character except #, $, or %.
If you want to later decrypt the private key, you must have the passphrase. You can use the following OpenSSL command to decrypt a private key. After entering the command, you are prompted for the passphrase.
openssl rsa -in encrypted_key.pem -out decrypted_key.pem
Trait Implementations§
source§impl Clone for ExportCertificate
impl Clone for ExportCertificate
source§fn clone(&self) -> ExportCertificate
fn clone(&self) -> ExportCertificate
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more