Here in this article we will troubleshoot this issue “How to publish Webserver with PEM Certificate on UTM SG”
UTM does not accept certificates in PEM format, you need to convert them to PKCS#12. Your certificate issuer can probably issue the certificate in a different format, or you can covert it yourself.
I will explain how to convert PEM to PKCS#12 in windows operating system
First download OPENSSL EXE file from this page:
Click on the OPENSSL based on the OS type you are using:
Now you need to add OPENSSL path to environmental variables:
Search for environmental variables in windows search bar:
Now click on environmental variables in this tab:
Double click on the path tab:
Now click on browse tab and search for OPENSSL path which will be under “C:\Program Files”. Once you got bin folder under OPENSSL, click on bin and select the path as shown in below image:
Now you can verify OPENSSL is installed in your system by typing “OPENSSL” command in windows cmd
Note: If you have already running command prompt, you have to close it and open new command prompt.
1.Open a command prompt and navigate to the directory that contains the cert_key_pem.txt file.
2.Execute the following OpenSSL command to create a PKCS12 (.p12) file:
openssl pkcs12 -export -inkey cert_key_pem.txt -in cert_key_pem.txt -out cert_key.p12
3After you enter the command, you’ll be prompted to enter an Export Password. Choose a password or phrase and note the value you enter
In Linux OS, OPENSSL is preinstalled, you can start from the above “step-2“
Hope this article helps you