Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Installing an SSL certificate on Glassfish 4.1

 
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

According to the link at https://www.ssldragon.com/blog/how-to-install-an-ssl-certificate-on-glassfish/ with the command:

keytool -genkey -alias myalias -keyalg RSA -keysize 2048 -keystore mykeystore.jks

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.
 
crispy bacon. crispy tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!