Transfer.Client.
import_certificate
(**kwargs)¶Imports the signing and encryption certificates that you need to create local (AS2) profiles and partner profiles.
See also: AWS API Documentation
Request Syntax
response = client.import_certificate(
Usage='SIGNING'|'ENCRYPTION',
Certificate='string',
CertificateChain='string',
PrivateKey='string',
ActiveDate=datetime(2015, 1, 1),
InactiveDate=datetime(2015, 1, 1),
Description='string',
Tags=[
{
'Key': 'string',
'Value': 'string'
},
]
)
[REQUIRED]
Specifies whether this certificate is used for signing or encryption.
[REQUIRED]
--certificate file://encryption-cert.pem
. Alternatively, you can provide the raw content.--certificate "`cat encryption-cert.pem`"
.--private-key file://encryption-key.pem
. Alternatively, you can provide the raw content of the private key file.--private-key "`cat encryption-key.pem`"
Key-value pairs that can be used to group and search for certificates.
Creates a key-value pair for a specific resource. Tags are metadata that you can use to search for and group a resource for various purposes. You can apply tags to servers, users, and roles. A tag key can take more than one value. For example, to group servers for accounting purposes, you might create a tag called Group
and assign the values Research
and Accounting
to that group.
The name assigned to the tag that you create.
Contains one or more values that you assigned to the key name you create.
dict
Response Syntax
{
'CertificateId': 'string'
}
Response Structure
(dict) --
CertificateId (string) --
An array of identifiers for the imported certificates. You use this identifier for working with profiles and partner profiles.
Exceptions
Transfer.Client.exceptions.ServiceUnavailableException
Transfer.Client.exceptions.InternalServiceError
Transfer.Client.exceptions.InvalidRequestException
Transfer.Client.exceptions.ResourceNotFoundException