aws_sdk_acm/client/
export_certificate.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`ExportCertificate`](crate::operation::export_certificate::builders::ExportCertificateFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`certificate_arn(impl Into<String>)`](crate::operation::export_certificate::builders::ExportCertificateFluentBuilder::certificate_arn) / [`set_certificate_arn(Option<String>)`](crate::operation::export_certificate::builders::ExportCertificateFluentBuilder::set_certificate_arn):<br>required: **true**<br><p>An Amazon Resource Name (ARN) of the issued certificate. This must be of the form:</p> <p><code>arn:aws:acm:region:account:certificate/12345678-1234-1234-1234-123456789012</code></p><br>
7    ///   - [`passphrase(Blob)`](crate::operation::export_certificate::builders::ExportCertificateFluentBuilder::passphrase) / [`set_passphrase(Option<Blob>)`](crate::operation::export_certificate::builders::ExportCertificateFluentBuilder::set_passphrase):<br>required: **true**<br><p>Passphrase to associate with the encrypted exported private key.</p><note>  <p>When creating your passphrase, you can use any ASCII character except #, $, or %.</p> </note> <p>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.</p> <p><code>openssl rsa -in encrypted_key.pem -out decrypted_key.pem</code></p><br>
8    /// - On success, responds with [`ExportCertificateOutput`](crate::operation::export_certificate::ExportCertificateOutput) with field(s):
9    ///   - [`certificate(Option<String>)`](crate::operation::export_certificate::ExportCertificateOutput::certificate): <p>The base64 PEM-encoded certificate.</p>
10    ///   - [`certificate_chain(Option<String>)`](crate::operation::export_certificate::ExportCertificateOutput::certificate_chain): <p>The base64 PEM-encoded certificate chain. This does not include the certificate that you are exporting.</p>
11    ///   - [`private_key(Option<String>)`](crate::operation::export_certificate::ExportCertificateOutput::private_key): <p>The encrypted private key associated with the public key in the certificate. The key is output in PKCS #8 format and is base64 PEM-encoded.</p>
12    /// - On failure, responds with [`SdkError<ExportCertificateError>`](crate::operation::export_certificate::ExportCertificateError)
13    pub fn export_certificate(&self) -> crate::operation::export_certificate::builders::ExportCertificateFluentBuilder {
14        crate::operation::export_certificate::builders::ExportCertificateFluentBuilder::new(self.handle.clone())
15    }
16}