bash-4.2$ ${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} start-domain ${DOMAIN_NAME}
Waiting for production to start .......
Successfully started the domain : production
domain Location: /data/apps/payara/appserver/glassfish/domains/production
Log File: /data/apps/payara/appserver/glassfish/domains/production/logs/server.log
Admin Port: 4848
Command start-domain executed successfully.
bash-4.2$ ${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} list-domains
production running
Command list-domains executed successfully.
bash-4.2$ ${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} enable-secure-admin --adminalias=production_certificate
Command enable-secure-admin not found.
Check the entry of command name. This command may be provided by a package that is not installed.
Closest matching local and remote command(s):
enable-secure-admin
enable-secure-admin-internal-user
enable-secure-admin-principal
Command enable-secure-admin failed.
bash-4.2$ ${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} stop-domain ${DOMAIN_NAME}
Waiting for the domain to stop .
Command stop-domain executed successfully.
bash-4.2$ ${PAYARA_DIR}/bin/asadmin --user ${ADMIN_USER} change-admin-password --domain_name=${DOMAIN_NAME}
Enter the admin password>
Enter the new admin password>
Enter the new admin password again>
Command change-admin-password executed successfully.
bash-4.2$ ${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} start-domain ${DOMAIN_NAME}
Waiting for production to start .......
Successfully started the domain : production
domain Location: /data/apps/payara/appserver/glassfish/domains/production
Log File: /data/apps/payara/appserver/glassfish/domains/production/logs/server.log
Admin Port: 4848
Command start-domain executed successfully.
bash-4.2$ ${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} enable-secure-admin --adminalias=production_certificate
Command enable-secure-admin not found.
Check the entry of command name. This command may be provided by a package that is not installed.
Closest matching local and remote command(s):
enable-secure-admin
enable-secure-admin-internal-user
enable-secure-admin-principal
Command enable-secure-admin failed.
bash-4.2$ ${PAYARA_DIR}/bin/asadmin list-file-users --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} --authrealmname=admin-realm server-config
Deprecated syntax, instead use:
asadmin --user admin --passwordfile /data/apps/payara/passwordFile list-file-users [options] ...
admin
Command list-file-users executed successfully.
--
You received this message because you are subscribed to the Google Groups "Payara Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to payara-forum...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/payara-forum/cfe16afc-d8cc-409c-b1a8-470d09d2961c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
bash-4.2$ mv /data/apps/payara/appserver/glassfish/glassfish/domains/production/config /data/apps/payara/appserver/glassfish/glassfish/domains/production/___config
bash-4.2$ mv /data/apps/old_payara-5.191/appserver/glassfish/glassfish/domains/production/config /data/apps/payara/appserver/glassfish/glassfish/domains/production/config
bash-4.2$ ${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} start-domain ${DOMAIN_NAME}
Waiting for production to start .........
Successfully started the domain : production
domain Location: /data/apps/payara/appserver/glassfish/domains/production
Log File: /data/apps/payara/appserver/glassfish/domains/production/logs/server.log
Admin Port: 4848
Command start-domain executed successfully.
bash-4.2$ ${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} enable-secure-admin --adm inalias=production_certificate
You must restart all running servers for the change in secure admin to take effect.
Command enable-secure-admin executed successfully.
bash-4.2$ ${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} stop-domain ${DOMAIN_NAME }
Waiting for the domain to stop .
Command stop-domain executed successfully.
bash-4.2$ ${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} start-domain ${DOMAIN_NAM E}
Waiting for production to start .......
Successfully started the domain : production
domain Location: /data/apps/payara/appserver/glassfish/domains/production
Log File: /data/apps/payara/appserver/glassfish/domains/production/logs/server.log
Admin Port: 4848
Command start-domain executed successfully.
# Copy certificate files
cd ${HOME_DIR}/appserver/glassfish/domains/production/config/
sudo cp /chemin/vers/mon/certificat.crt .
sudo cp /chemin/vers/mon/certificat.key .
sudo cp /chemin/vers/mon/DigiCertCA.crt .
sudo cp /chemin/vers/mon/TrustedRoot.crt .
sudo chmod 400 certificat.crt
sudo chmod 400 DigiCertCA.crt
sudo chmod 400 TrustedRoot.crt
sudo chmod 400 certificat.key
sudo chown payara:payara certificat.crt
sudo chown payara:payara DigiCertCA.crt
sudo chown payara:payara TrustedRoot.crt
sudo chown payara:payara certificat.key
# Configure the payara domain
${PAYARA_DIR}/bin/asadmin change-master-password --savemasterpassword=true ${DOMAIN_NAME}
cd ${HOME_DIR}/appserver/glassfish/domains/production/config/
openssl pkcs12 -export -in certificat.crt -inkey certificat.key -out certificat.p12 -name production_certificate
keytool -list -keystore certificat.p12
keytool -importkeystore -destkeystore keystore.jks -srckeystore certificat.p12 -srcstoretype PKCS12 -alias production_certificate
keytool -importcert -trustcacerts -destkeystore cacerts.jks -file certificat.crt -alias production_certificate
keytool -importcert -trustcacerts -destkeystore cacerts.jks -file DigiCertCA.crt -alias digicertca_certificate
keytool -importcert -trustcacerts -destkeystore cacerts.jks -file TrustedRoot.crt -alias trustedroot_certificate
${PAYARA_DIR}/bin/asadmin --user ${ADMIN_USER} --passwordfile=/tmp/tmpfile change-admin-password --domain_name=${DOMAIN_NAME}
${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} start-domain ${DOMAIN_NAME}
${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} set configs.config.server-config.network-config.protocols.protocol.http-listener-2.security-enabled=true
${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} set configs.config.server-config.network-config.protocols.protocol.http-listener-2.ssl.tls-enabled=true
${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} set configs.config.server-config.network-config.protocols.protocol.http-listener-2.ssl.tls11-enabled=true
${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} set configs.config.server-config.network-config.protocols.protocol.http-listener-2.ssl.tls12-enabled=true
${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} set configs.config.server-config.network-config.protocols.protocol.http-listener-2.ssl.cert-nickname=production_certificate
${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} enable-secure-admin --adminalias=production_certificate
(failed here)
for MEMORY_JVM_OPTION in $(${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} list-jvm-options | grep "Xm[sx]"); do\
${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} delete-jvm-options $MEMORY_JVM_OPTION;\
done
${PAYARA_DIR}/bin/asadmin --user=${ADMIN_USER} --passwordfile=${PASSWORD_FILE} set-log-attributes com.sun.enterprise.server.logging.GFFileHandler.logtoFile=false
To unsubscribe from this group and stop receiving emails from it, send an email to payara...@googlegroups.com.