On GlassFish, you need to do the following setup to avoid a java.security.UnrecoverableKeyException with the message Password must not be null:
Edit your domain's domain.xml (e.g. in domains/domain1/config/domain.xml).
Search for the section of the file that contains <jvm-options> elements, and there, add: <jvm-options>-Djavax.net.ssl.keyStorePassword=changeit</jvm-options>. If you changed your Glassfish master password, set this property to your new password.
The above steps have been verified on GlassFish 3.1 and 4.1.1.