:doc:`ACM <../../acm>` / Client / get_certificate

***************
get_certificate
***************



.. py:method:: ACM.Client.get_certificate(**kwargs)

  

  Retrieves a certificate and its certificate chain. The certificate may be either a public or private certificate issued using the ACM ``RequestCertificate`` action, or a certificate imported into ACM using the ``ImportCertificate`` action. The chain consists of the certificate of the issuing CA and the intermediate certificates of any other subordinate CAs. All of the certificates are base64 encoded. You can use `OpenSSL <https://wiki.openssl.org/index.php/Command_Line_Utilities>`__ to decode the certificates and inspect individual fields.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate>`_  


  **Request Syntax**
  ::

    response = client.get_certificate(
        CertificateArn='string'
    )
    
  :type CertificateArn: string
  :param CertificateArn: **[REQUIRED]** 

    String that contains a certificate ARN in the following format:

     

    ``arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012``

     

    For more information about ARNs, see `Amazon Resource Names (ARNs) <https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html>`__.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Certificate': 'string',
          'CertificateChain': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Certificate** *(string) --* 

        The ACM-issued certificate corresponding to the ARN specified as input.

        
      

      - **CertificateChain** *(string) --* 

        Certificates forming the requested certificate's chain of trust. The chain consists of the certificate of the issuing CA and the intermediate certificates of any other subordinate CAs.

        
  
  **Exceptions**
  
  *   :py:class:`ACM.Client.exceptions.InvalidArnException`

  
  *   :py:class:`ACM.Client.exceptions.RequestInProgressException`

  
  *   :py:class:`ACM.Client.exceptions.ResourceNotFoundException`

  