Use the create-ssl subcommand in remote mode to create and configure an SSL element in the specified listener. This enables secure communication for the listener.
Ensure that the server is running.
Remote subcommands require a running server.
Configure an HTTP listener by using the create-ssl(1) subcommand.
To apply your changes, restart GlassFish Server.
See To Restart a Domain.
This example enables the HTTP listener named http-listener-1 for SSL:
asadmin> create-ssl --type http-listener --certname sampleCert http-listener-1 Command create-ssl executed successfully. |
You can also view the full syntax and options of the subcommand by typing asadmin help create-ssl at the command line.