I'm trying to find resources on how to install an SSL certificate on Glassfish 4.1 so as to be able to use https, and in the first instance I want to try out a free SSL certificate.
The link at https://zerossl.com/free-ssl explains how you can use a free SSL wizard, which I used to create a file containing a CSR and a file containing a private RSA key. Both are created in base64 as ASCII text files. However. the website explains the installation with cPanel on GoDaddy, and I have a different setup using a VPS hosting with a Linux CentrOS 7 x64 system with no cPanel.
2048 bits should be used rather than 4096 as given in the previous link. On both my local computer (Windows 10) and the remote server (Linux CentrOS 7 x64) I have the folder /glassfish4/glassfish/domains/domain1/config/, which both contain a number of files, of which the following are probably the most relevant:
admin-keyfile cacerts.jks keyfile keystore.jks
keyfile just contains text with a copyright notice and has no function, but looks as if code could be added to it, the other files are all in binary so cannot be opened in a text editor.
As the two files generated using https://zerossl.com/free-ssl are in base64, I'm having problems reconciling on how to install an SSL certificate in the Glassfish server, and so far have found no documentation that makes this clear.
Almost certainly replacing the default keystore.jks file with the files downloaded from https://zerossl.com/free-ssl will not work, and being completely new to installing SSL, I would be grateful for some guidance on this. Note that currently my website is www.cs-cubed.com or http://cs-cubed.com, and wish to convert it to https://cs-cubed.com.
Hey! You're stepping on my hand! Help me tiny ad!
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps