- To do this task, you need to access the GlassFish remote command-line interface (CLI). You can do it by going to this path:
$GLASSFISH_HOME/bin
- Once you are there, execute the following command:
./asadmin
- When the prompt is ready, you can execute this command:
create-ssl --type http-listener --certname cookbookCert http-listener-1
- Then you can restart the server and your http-listener-1 will work with SSL. If you want to drop SSL from the listener, just go back to the prompt and execute this command:
delete-ssl --type http-listener http-listener-1