users@glassfish.java.net

[gf-users] Re: Does Glassfish 4.1 support SSL by default?

From: John Jiang <john.sha.jiang_at_gmail.com>
Date: Tue, 26 May 2015 16:22:02 +0800

Hi,
Certainly, I had started the domain. And the ports weren't occupied yet.
Yesterday, I made a strange mistake, but It's OK now :-)

Thank you all the same.

Best regards,
Sha Jiang

2015-05-26 4:40 GMT+08:00 Oleksiy Stashok <oleksiy.stashok_at_oracle.com>:

> Hi Sha,
>
> maybe you forgot to start the test domain? [1]
> After I started the domain as [1], I could reach the server via HTTPS on
> port 50496 as specified during domain creation.
>
> WBR,
> Alexey.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *[~/apps/glassfish/glassfish4/bin ] ./asadmin create-domain test Enter
> admin user name [Enter to accept default "admin" / no password]> Default
> port 4848 for Admin is in use. Using 50492 Default port 8080 for HTTP
> Instance is in use. Using 50493 Default port 7676 for JMS is in use. Using
> 50494 Default port 3700 for IIOP is in use. Using 50495 Default port 8181
> for HTTP_SSL is in use. Using 50496 Using default port 3820 for IIOP_SSL.
> Using default port 3920 for IIOP_MUTUALAUTH. Default port 8686 for
> JMX_ADMIN is in use. Using 50497 Using default port 6666 for OSGI_SHELL.
> Using default port 9009 for JAVA_DEBUGGER. Distinguished Name of the
> self-signed X.509 Server Certificate is: [CN=baterka,OU=GlassFish,O=Oracle
> Corporation,L=Santa Clara,ST=California,C=US] Distinguished Name of the
> self-signed X.509 Server Certificate is:
> [CN=baterka-instance,OU=GlassFish,O=Oracle Corporation,L=Santa
> Clara,ST=California,C=US] Domain test created. Domain test admin port is
> 50492. Domain test allows admin login as user "admin" with no password.
> Command create-domain executed successfully.*
>
>
>
>
>
>
>
>
> *[~/apps/glassfish/glassfish4/bin ] ./asadmin start-domain test Waiting
> for test to start ..... Successfully started the domain : test domain
> Location: /Users/oleksiys/apps/glassfish/glassfish4/glassfish/domains/test
> Log File:
> /Users/oleksiys/apps/glassfish/glassfish4/glassfish/domains/test/logs/server.log
> Admin Port: 50492 Command start-domain executed successfully.*
>
>
>
>
> On 25.05.15 00:03, john.sha.jiang_at_gmail.com wrote:
>
> Hi all,
> I'm new to Glassfish and SSL, and using Glassfish 4.1.
>
> I create a new domain with the following command:
> asadmin create-domain test
> and then I cannot access the domain via the following links:
> 1. http://localhost:8080
> 2. https://localhost:8181
>
> Does it mean that the server already support SSL and I don't need to do
> any configuration related to SSL?
>
> Thanks!
>
> Sha Jiang
>
>
>