It is likely that the admin console is just updating the domain.xml file anyway. In any case, it is recommended that you avoid modifying the domain.xml file where possible. There are no official recommendations in the Safety Guide for GF4, and the only mention of the certificate name is:
If you enable the secure admin on the GlassFish server with SSL support, the secure administrator uses the existing value as the DAS administrator alias for the secure administrator.
https://glassfish.java.net/docs/4.0/security-guide.pdf
Changing a pseudonym is not really necessary, from a functional point of view. When you import your / cert key into the keystores, you can simply use the same name to replace the existing certificate, which is completely right.
Change To change aliases using the asadmin , you can use enable-secure-admin with --instancealias myNewAlias or --adminalias myOtherNewAlias (or both).
The default value for adminalias is s1as , and the default value for instancealias is glassfish-instance .
source share