Create CSR
The XiSecure web service uses client certificates to identify the source of the web service call. You generate a CSR which also generates a private key. The CSR is sent to Paymetric. Paymetric generates the signed client certificate (.pem file) which is downloaded from the Merchant Portal once it is processed.
You save the signed client certificate and the private key to a secure location on a machine to which your client application has access. These files are then referenced in the SOAP header of your web service calls for non-SAP implementations or in PAS for SAP implementations.
Prerequisite if replacing a certificate
Rename the existing certificate to invalidate it and save as temporary backup. (oldMyCert.pem for example)
How to create a CSR
Perform the following steps to generate the CSR and private key.
If any On-Demand Service for a given environment is a Requested state, then the top level status for the environment will indicate requested. See Onboarding Setup Request Statuses.
-
Obtain openssl.
-
Note: If running under Linux, then it is likely that openssl is already installed.
-
For Windows, download the full openssl installer from the following site: http://www.slproweb.com/products/Win32OpenSSL.html
Using Windows installs it in C:\OpenSSL by default.
Note that the openssl binary that referenced throughout the rest of the certificate creation process can be found in C:\OpenSSL\bin.
After openssl is installed, the process to create a certificate is the same on both Windows and Linux.
-
-
Navigate to the desired folder where you want the certificate to reside.
-
To generate a private key and a client certificate signing request, execute the following command:
openssl req -new -out companyname_qa.csr -keyout companyname_qa.privkey.pem
Replace companyname_qa with the file name you want. It should represent your company name and environment.
-
You are prompted for a private key password. Enter a secure a password. Make note of this password. You will need it to configure PAS for SAP implementations.
-
You are prompted for identifying information. Complete the fields.
-
Leave the requested “extra” attributes blank.
-
Upon completion of the command, two files are created: company_qa.privkey.pem and company_qa.cert.csr.
-
Send the *.cert.csr file to Paymetric. If this is the first time you are creating a CSR, see Perform a New XiSecure Onboarding Request. If this is a replacement certificate, see Renew or Replace XiSecure Certificate.
-
Do NOT send the *.privkey.pem file to Paymetric. Move this file to the certificate directory.
-