Converting the PFX Certificate to PEM Certificates for the Spok Notification Framework (for CCS 1.9.3.x)
These instructions are for RabbitMQ 3.8.3. If you need instructions for RabbitMQ 3.7.0, go to the previous article or see Converting the PFX Certificate to PEM Certificates for the Spok Notification Framework (for CCS 1.9.2.160).
Complete this procedure to convert the PFX certificate to three PEM certificates that must be in place to be used by the Spok Notification Framework.
Before you begin, ensure that the certificate has been exported to PFX format and that the you have the required password. The customer typically creates the PFX and will therefore need to supply the password that they created when they created the file.
The certificate that was exported to PFX from the Windows certificate stores must be converted into three PEM certificates. To do this, perform the following steps.
- On the Spok Mobile server, open the Run program by pressing
Windows key + R.
EnterCMD
in the Open field. Press Enter. - In the command prompt window, navigate to to the directory by executing:
cd C:/ProgramData/Spok/RabbitMQExample/SSL
- Execute
ConvertCertificate.bat password exportpass
. This will separate the PFX certificate into three PEM certificates:root_cert.pem
,server_cert.pem
, andkey_cert.pem
.- In the command prompt window, enter the password that was set when the certificate was exported to PFX. Do not change
exportpass
. This is the password RabbitMQ uses to decrypt the PEM files. Press Enter. - Take note of any “Invalid Password” messages you see at this time. You must rerun the ConvertCertificate.bat script if any invalid password messages appear.
- In the command prompt window, enter the password that was set when the certificate was exported to PFX. Do not change
- Once the conversion has completed successfully, confirm that the three certificate files
root_cert.pem
,server_cert.pem
,and
key_cert.pem
were created in the%AppData%\RabbitMQ
directory.- Each PEM file must be at least 1KB or larger in size; this means the conversion was successful. If either file is 0KB, then the file is empty ("zeroed") and you must run the script again.
- In the command prompt, navigate to the directory
cd C:/Program Files/RabbitMQ Server/rabbitmq_server-version/sbin
and execute the following commands to re-install the RabbitMQ service:rabbitmq-service remove
rabbitmq-service install
rabbitmq-service start
rabbitmqctl start_app" - The certificates on the Care Connect Suite server are now in place, and the RabbitMQ service needed for the Spok Notification Framework now uses it.