Integrating custom certificates into RabbitMQ - Genetec Mission Control™ 3.0.6.0

Genetec Mission Control™ Deployment Guide 3.0.6.0

Applies to
Genetec Mission Control™ 3.0.6.0
Last updated
2022-10-26
Content type
Guides > Deployment guides
Language
English
Product
Genetec Mission Control™
Version
3.0

When using third-party certificates, you need a private key to enable integration of the certificates with RabbitMQ.

Procedure

To install the certificates on the local machine:

  1. Double click the certificate file.
  2. Click Install certificate.
    The Certificate Import Wizard opens.
  3. Select the following options:
    1. Select Local machine for Store location and click Next.
    2. In the Certificate store section, click Browse, select Personal from the Certificate store list, and then click OK.
    3. On the Export Private Key page, select Yes, export the private key and click Next.
    4. Clear Enable certificate privacy.
    5. In the Security section, select Password, type your password choice, and click Next.
    A PFX file is generated.

To convert the PFX file to a pem file:

  1. Install OpenSSL.
  2. Open the command prompt as an administrator:
    1. In the Windows search box, type cmd.
    2. Right click Command prompt and select Run as administrator.
  3. Generate the key.pem file:
    1. Change the directory using the following command: c:\OpenSSL-Win32\bin
      NOTE: Copy your PFX file to this location.
    2. Execute Openssl.exe pkcs12 -in yourpfxfile.pfx -nocerts -out key.pem -nodes
    3. When prompted for a password, enter the password you set up when exporting the certificates from mmc.exe.
    The key.pem file is generated in c:\OpenSSL-Win32\bin.
  4. Move the Key.pem file to C:\Program Files (x86)\Genetec\RabbitMQ.
  5. Back up your RabbitMQ self-signed certificate files in C:\Program Files (x86)\Genetec\RabbitMQ.
  6. Replace the RabbitMQ self-signed certificates:
    1. Go to C:\Program Files (x86)\Genetec\RabbitMQ.
    2. Replace Cert.cer with Cert.pem.
      NOTE: You can change the extension by renaming it.
    3. Replace CACert.cer with CACert.pem.
  7. Open the RabbitMQ Command Prompt (sbin dir) application.
  8. Reinstall the RabbitMQ service by executing the following commands:
    1. rabbitmq-service.bat remove
    2. rabbitmq-service.bat install
    3. rabbitmq-service.bat start
  9. Reboot your machine for the changes to take effect.