cd /opt/glassfish/domains/hemadomain/config/
openssl pkcs12 -export -in /etc/letsencrypt/live/ws-sjd.ehg.pe/cert.pem -inkey /etc/letsencrypt/live/ws-sjd.ehg.pe/privkey.pem -out glash.p12 -name s1as -CAfile /etc/letsencrypt/live/ws-sjd.ehg.pe/fullchain.pem -caname root
/usr/lib/jvm/jre1.7.0/bin/keytool -importkeystore -deststorepass XXXX -destkeypass XXXX -destkeystore keystore.jks -srckeystore glash.p12 -srcstoretype PKCS12 -alias s1as
Donde XXXX es el password Master del GlashFish