You are here:
Generate a Self-Signed Certificate with OpenSSL
Use OpenSSL to generate an RSA private key and two certificates. You need one certificate to set up a secure connection between Amazon Connect and Salesforce and another certificate for the REST API integration. Repeat the steps to create both certificates. After generating the certificates, update your contact center definition file based on the certificate value if you've manually integrated your contact center.
This article applies to:
- Service Cloud Voice with Partner Telephony from Amazon Connect
-
Create a folder for holding the generated certificate:
$ mkdir certificates -
Change the current directory to the certificates folder:
$ cd certificates -
In the certificates folder, specify a password and generate an RSA private key. Where
it says
<your_password>, specify your own password.$ openssl genrsa -des3 -passout pass:<your_password> -out server.pass.key 2048 -
Create a key file from the
server.pass.keyfile using the password that you created in the previous step:$ openssl rsa -passin pass:<your_password> -in server.pass.key -out server.key -
Delete the
server.pass.key:$ rm server.pass.key -
Request and generate the certificate:
$ openssl req -new -key server.key -out server.csr -
Enter the required information.
- Enter your company details.
-
When prompted for the challenge password, press Enter.
The Certificate Authorities use this password to authenticate the certificate owner when they want to revoke their certificate. You can’t revoke it via the Certificate Revocation List (CRL) because it’s a self-signed certificate.
-
Generate the SSL certificate:
$ openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt
The server.crt file is generated as the output. If you’ve manually integrated your contact center, copy the file content and update the values of the reqTelephonyIntegrationCertificate and reqTelephonyIntegrationKeyPairExpDate attributes in the contact center definition file. For more information on the attributes, see Prepare Contact Center Definition File.

