To enable the certificate via the GlassFish Administration Console, enter this menu: Configurations >> server-config >> HTTP Service >> HTTP Listeners >> http-listener-2: Switch to the SSL tab, enter your certificate alias myalias as the Certificate NickName, and click Save:
How to bind a certificate to a secure port on GlassFish?
In order to bind the newly imported certificate to a secure port on Glassfish, we need to open the corresponding http-listener settings and change the value of the Certificate NickName field to the domain certificate’s alias value:
How do I enable the Administration Console on GlassFish?
This can be done by using the following command: asadmin enable-secure-admin example.com Once enabled, you can access the administration console via You will need to bypass the certificate warning given by the self-signed certificate that is installed on GlassFish by default.
How do I change the default certificate alias used by GlassFish?
Open the file with your preferred text editor and locate any reference to s1as, which is the default certificate alias used by GlassFish. s1as should be replaced with myalias,our certificate alias. If the file contains references to port 8181, you can also update them to 443:
How do I install my certificate on GlassFish?
After your certificate is activated and issued, you can proceed with its installation on GlassFish. Since GlassFish uses keystores (.jks files), the certificate files need to be imported into the keystore with the corresponding private key before installation. For this, you will need to locate the keystore that was used to generate the CSR.
How to secure port 4848 with certificate in GlassFish?
Usually you can proxy HTTP and HTTPS ports to their Glassfish counterparts (8080 and 8081) with the certificate installed on webserver (frontend) level but to have Glassfish console (port 4848) secured with certificate you may want to install it directly in Glassfish. You may also want to access HTTPS listener directly with port number in URL.