PaymentCryptographyControlPlane / Client / get_public_key_certificate
get_public_key_certificate#
- PaymentCryptographyControlPlane.Client.get_public_key_certificate(**kwargs)#
Gets the public key certificate of the asymmetric key pair that exists within Amazon Web Services Payment Cryptography.
Unlike the private key of an asymmetric key, which never leaves Amazon Web Services Payment Cryptography unencrypted, callers with
GetPublicKeyCertificate
permission can download the public key certificate of the asymmetric key. You can share the public key certificate to allow others to encrypt messages and verify signatures outside of Amazon Web Services Payment CryptographyCross-account use: This operation can’t be used across different Amazon Web Services accounts.
See also: AWS API Documentation
Request Syntax
response = client.get_public_key_certificate( KeyIdentifier='string' )
- Parameters:
KeyIdentifier (string) –
[REQUIRED]
The
KeyARN
of the asymmetric key pair.- Return type:
dict
- Returns:
Response Syntax
{ 'KeyCertificate': 'string', 'KeyCertificateChain': 'string' }
Response Structure
(dict) –
KeyCertificate (string) –
The public key component of the asymmetric key pair in a certificate (PEM) format. It is signed by the root certificate authority (CA) within your service account. The certificate expires in 90 days.
KeyCertificateChain (string) –
The certificate chain that signed the public key certificate of the asymmetric key pair. This is the root certificate authority (CA) within your service account.
Exceptions
PaymentCryptographyControlPlane.Client.exceptions.ServiceUnavailableException
PaymentCryptographyControlPlane.Client.exceptions.ValidationException
PaymentCryptographyControlPlane.Client.exceptions.AccessDeniedException
PaymentCryptographyControlPlane.Client.exceptions.ResourceNotFoundException
PaymentCryptographyControlPlane.Client.exceptions.ThrottlingException
PaymentCryptographyControlPlane.Client.exceptions.InternalServerException