Module Smaws_Client_ACM.ExportCertificate

Exports a private certificate issued by a private certificate authority (CA) or a public certificate for use anywhere. The exported file contains the certificate, the certificate chain, and the encrypted private 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 and Export a public certificate.

ACM public certificates created prior to June 17, 2025 cannot be exported.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `InvalidArnException of Types.invalid_arn_exception | `RequestInProgressException of Types.request_in_progress_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `ThrottlingException of Types.throttling_exception | `ValidationException of Types.validation_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.export_certificate_request -> (Types.export_certificate_response, [> Smaws_Lib.Protocols.AwsJson.error | `InvalidArnException of Types.invalid_arn_exception | `RequestInProgressException of Types.request_in_progress_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `ThrottlingException of Types.throttling_exception | `ValidationException of Types.validation_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.export_certificate_request -> (Types.export_certificate_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `InvalidArnException of Types.invalid_arn_exception | `RequestInProgressException of Types.request_in_progress_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `ThrottlingException of Types.throttling_exception | `ValidationException of Types.validation_exception ] * Smaws_Lib.Response.metadata) Stdlib.result