import_certificate
(**kwargs)¶Imports a certificate into Certificate Manager (ACM) to use with services that are integrated with ACM. Note that integrated services allow only certificate types and keys they support to be associated with their resources. Further, their support differs depending on whether the certificate is imported into IAM or into ACM. For more information, see the documentation for each service. For more information about importing certificates into ACM, see Importing Certificates in the Certificate Manager User Guide .
Note
ACM does not provide managed renewal for certificates that you import.
Note the following guidelines when importing third party certificates:
Not Before
and Not After
certificate fields.Issuer
field must not be empty.CertificateArn
argument. Include this argument only when you want to replace a previously imported certificate.fileb://
. For example, you can specify a certificate saved in the C:\temp
folder as fileb://C:\temp\certificate_to_import.pem
. If you are making an HTTP or HTTPS Query request, include these arguments as BLOBs.This operation returns the Amazon Resource Name (ARN) of the imported certificate.
See also: AWS API Documentation
Request Syntax
response = client.import_certificate(
CertificateArn='string',
Certificate=b'bytes',
PrivateKey=b'bytes',
CertificateChain=b'bytes',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
The certificate to import.
[REQUIRED]
The private key that matches the public key in the certificate.
One or more resource tags to associate with the imported certificate.
Note: You cannot apply tags when reimporting a certificate.
A key-value pair that identifies or specifies metadata about an ACM resource.
The key of the tag.
The value of the tag.
dict
Response Syntax
{
'CertificateArn': 'string'
}
Response Structure
(dict) --
CertificateArn (string) --
The Amazon Resource Name (ARN) of the imported certificate.
Exceptions
ACM.Client.exceptions.ResourceNotFoundException
ACM.Client.exceptions.LimitExceededException
ACM.Client.exceptions.InvalidTagException
ACM.Client.exceptions.TooManyTagsException
ACM.Client.exceptions.TagPolicyException
ACM.Client.exceptions.InvalidParameterException
ACM.Client.exceptions.InvalidArnException