Skip to main content

SSL Certificate and https on Glassfish version 4 !

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
2 replies [Last post]
Inkimar68
Offline
Joined: 2011-11-25

Hello,

Running the latest Glassfish 4 Application Server.
Ordered and received a certificate from comodo ( comodo.com ).
Did follow their advice on the page -> Support Center » Knowledgebase
» Certificate Installation: Glassfish .

That is not helping me.

When I list my keystore
: -> keytool -list -keystore keystore.jks
I can see 5 entries where :
-> .com, Feb 6, 2014, trustedCertEntry
and
-> glassfish-instance, Jan 21, 2014, PrivateKeyEntry

looking closer at the entry glassfish-instance with the verbose-command
: -> keytool -list -v -alias glassfish-instance -keystore keystore.jks

I see that this is my old certificate which expired November pointig
at my olddomain.com which
is not in use anymore ....
I choose to throw that key away, next time I run the keytool -list I
have only 4 entries ...
That would be sufficient ?

Going to the admin-gui-interface : Configurations-Server-config - HTTP
Service - Http Listerners -> http-listener-2 .
The Security checkbox is checked.
I flip to SSL and there I choose SSL3 and TLS :
In the input-box 'Certificate Nickname' I replace 's1as' with
' .

I restart the server.
I try to login in at https://localhost:8181 with links from my
command-line -> SSL Error

What am i doing wrong ?

I have check allt the Glassfish 4 documentation (
https://glassfish.java.net/docs/4.0/administration-guide.pdf ,
https://glassfish.java.net/docs/4.0/security-guide.pdf ) But I am
stucked .
Did check out this Glassfish Security ( for ver 3.x ) at youtube ->
http://www.youtube.com/watch?v=0E5omVvoIp0
but they never did dive into those certifications.

I wish that some Glassfish-person could put a nice tutorial out there
( followed javadude but with No luck ,
http://javadude.wordpress.com/2010/04/06/getting-started-with-glassfish-...
- that is actually version 3 there ... could be that ofcourse .... )

Hope that you can give me some advice here.

regards, Inki

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
augustosamame
Offline
Joined: 2015-06-09

Hello. Did you fix your problem? If so, we'd appreciate a few pointers. We're trying the same thing and it doesn't work.

Inkimar68
Offline
Joined: 2011-11-25

Hello!

We did not solve this.
We moved on and threw Glassifsh overboard and took in the bitnami-stack with Apache+Wildfly 8.x instead and set the certificate in Apache instead - which was in the comfort-zone of one of our developers.

regards, i