Submit a Certificate Signing Request

Follow these steps to submit your own public PEM-formatted certificate signing request (CSR) if you are using JSON Web Tokens to secure communication. You also have the option to create a P12 certificate from your CSR to use for testing purposes.
  1. On the left navigation panel, choose
    Payment Configuration > Key Management
    .
  2. Click
    + Generate
    key.
  3. Under REST APIs, choose
    REST – Certificate
    , and then click
    Generate key
    .
    If you are using a portfolio account, the Key options window appears, giving you the choice to create a meta key. For more information about how to create a meta key, see Meta Key Creation and Management.
  4. Enter your public PEM-formatted certificate in the text box, then click
    Download key
    .
    If you need to generate your own CSR and private key, run this command. In this example,
    merchant
    is your organization or merchant ID (MID). You can extract the certificate value by opening the
    example.csr
    file using a text editor application.
    openssl req -new -newkey rsa:2048 -keyout private_key.pem -out example.csr -sha256 -nodes -subj "/CN=
    merchant
    "
  5. (Optional) To convert your submitted CSR into a
    .p12
    file, run this command. In this example,
    merchant
    is your organization or merchant ID (MID).
    You can use the P12 certificate for testing using the
    REST API Reference
    on the Developer Center.
    openssl pkcs12 -export -name "$(printf 'serialnumber=%s,cn=%s' "$(openssl x509 -in
    merchant
    _certChain.pem -noout -serial | cut -d= -f2 | xxd -r -p)" "$(openssl x509 -in
    merchant
    _certChain.pem -noout -subject | sed -n 's/.*CN=\([^/]*\).*/\1/p')" )" -out
    merchant
    .p12 -inkey private_key.pem -in
    merchant
    _certChain.pem
  6. When prompted, set a password for the
    .p12
    file.
You can create or upload another key by clicking
Generate another key
. To view all of your created keys, use the Key Management page.
IMPORTANT
Securely store your key's password in your system. These credentials are required to implement certain products and you must be able to access them.