AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

ExportCertificateInput

import "github.com/aws/aws-sdk-go/service/acm"

type ExportCertificateInput struct { CertificateArn *string `min:"20" type:"string" required:"true"` Passphrase []byte `min:"4" type:"blob" required:"true" sensitive:"true"` }

CertificateArn

Type: *string

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

CertificateArn is a required field

Passphrase

Type: []byte

Passphrase to associate with the encrypted exported private key. 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:

openssl rsa -in encrypted_key.pem -out decrypted_key.pem

Passphrase is automatically base64 encoded/decoded by the SDK.

Passphrase is a required field

Method

GoString

func (s ExportCertificateInput) GoString() string

GoString returns the string representation

SetCertificateArn

func (s *ExportCertificateInput) SetCertificateArn(v string) *ExportCertificateInput

SetCertificateArn sets the CertificateArn field's value.

SetPassphrase

func (s *ExportCertificateInput) SetPassphrase(v []byte) *ExportCertificateInput

SetPassphrase sets the Passphrase field's value.

String

func (s ExportCertificateInput) String() string

String returns the string representation

Validate

func (s *ExportCertificateInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: