:doc:`PaymentCryptographyControlPlane <../../payment-cryptography>` / Client / get_certificate_signing_request

*******************************
get_certificate_signing_request
*******************************



.. py:method:: PaymentCryptographyControlPlane.Client.get_certificate_signing_request(**kwargs)

  

  Creates a certificate signing request (CSR) from a key pair.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/payment-cryptography-2021-09-14/GetCertificateSigningRequest>`_  


  **Request Syntax**
  ::

    response = client.get_certificate_signing_request(
        KeyIdentifier='string',
        SigningAlgorithm='SHA224'|'SHA256'|'SHA384'|'SHA512',
        CertificateSubject={
            'CommonName': 'string',
            'OrganizationUnit': 'string',
            'Organization': 'string',
            'City': 'string',
            'Country': 'string',
            'StateOrProvince': 'string',
            'EmailAddress': 'string'
        }
    )
    
  :type KeyIdentifier: string
  :param KeyIdentifier: **[REQUIRED]** 

    Asymmetric key used for generating the certificate signing request

    

  
  :type SigningAlgorithm: string
  :param SigningAlgorithm: **[REQUIRED]** 

    The cryptographic algorithm used to sign your CSR.

    

  
  :type CertificateSubject: dict
  :param CertificateSubject: **[REQUIRED]** 

    The metadata used to create the CSR.

    

  
    - **CommonName** *(string) --* **[REQUIRED]** 

      The name you provide to create the certificate signing request.

      

    
    - **OrganizationUnit** *(string) --* 

      The organization unit you provide to create the certificate signing request.

      

    
    - **Organization** *(string) --* 

      The organization you provide to create the certificate signing request.

      

    
    - **City** *(string) --* 

      The city you provide to create the certificate signing request.

      

    
    - **Country** *(string) --* 

      The country you provide to create the certificate signing request.

      

    
    - **StateOrProvince** *(string) --* 

      The state or province you provide to create the certificate signing request.

      

    
    - **EmailAddress** *(string) --* 

      The email address you provide to create the certificate signing request.

      

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

    
    ::

      {
          'CertificateSigningRequest': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **CertificateSigningRequest** *(string) --* 

        The certificate signing request generated using the key pair associated with the key identifier.

        
  
  **Exceptions**
  
  *   :py:class:`PaymentCryptographyControlPlane.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`PaymentCryptographyControlPlane.Client.exceptions.ValidationException`

  
  *   :py:class:`PaymentCryptographyControlPlane.Client.exceptions.AccessDeniedException`

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

  
  *   :py:class:`PaymentCryptographyControlPlane.Client.exceptions.ThrottlingException`

  
  *   :py:class:`PaymentCryptographyControlPlane.Client.exceptions.InternalServerException`

  