Summary
The WAVE Media Server uses a self-signed SSL certificate. In some situations it might be necessary to replace this certificate. This article details how to replace the certificate.
Modify the SSL Certificate
To modify the SSL certificate:
- Obtain the .pem certificate file.
NOTE: It is the responsibility of the user to obtain
their own .pem/crt (SSL Certificate). - Stop the Media Server.
- Go to the C:\Windows\System32\config\systemprofile\AppData\Local\Hanwha\WAVE Media Server\ssl directory.
- Remove the existing pem* file.
- Insert the certificate received from Step 1 into the ssl directory.
- Change the file name to cert.pem.
- Start the server.
NOTE: In Ubuntu, the only difference is the path to
cert.pem file: /opt/Hanwha/mediaserver/var/ssl.
Ubuntu Linux System
To modify the certificate in Ubuntu Linux:
- Prepare your own cert.pem file, which includes the private key, your cert, the CA chain.
- Copy this to a USB drive.
- Open the media server config utility.
- Right click on the Home icon.
- Navigate to System Administration > Routing.
- Add the URL to use, such as the following: https://yourURL.com:7001. This should be the same name as in your purchased certificate.
- Open a terminal window on the device by clicking the Command Prompt icon.
- Type sudo -s <enter> to stop the media server.
- Enter the password of the account.
- Enter sudo systemctl stop hanwha-mediaserver.service, then click Enter.
- Enter nautilus and click Enter. The Nautilus file explorer opens in admin mode.
NOTE: The terminal window may close.
- Navigate to the OPT\Hanwha\MediaServer\var\SSL folder.
- Delete the default certificate cert.pem by right clicking it and sending to trash.
- Navigate to your USB drive, right click the purchased cert.pem file that you prepared and click Copy.
- Navigate to the cert directory \OPT\Hanwha\MediaServer\var\ssl\ and paste the new cert into the folder.
- Restart the device.
- From another machine on the network, try to go to https://yourURL.com:7001.
- Make sure to add the URL and internal appliance IP to your test computer host file or create a static A record for it in internal DNS.
- Add a public DNS A record of the name and the appliance public IP.
NOTE: If the media server does not detect a valid cert in the
SSL folder when it starts, it automatically generates a new
Hanwha cert and drops it in the overwriting. That can indicate
there is a problem with the .pem file.