I applied for an SSL certificate (Symantec Free SSL) on Alibaba Cloud and downloaded the certificate in pfx format.
The jetty server is used and needs to be converted to jks format.
Download the compressed package:
Transfer PFX certificate to JKS
keytool -importkeystore -srckeystore mycert.pfx -srcstoretype pkcs12 -destkeystore mycert.jks -deststoretype JKS
mycert.pfx is the pfx before transfer
mycert.jks is transferred
After entering the above command, you need to enter the secret database password three times. Enter the password in the pfx-password.txt file three times.
The required jks file is obtained above. As long as there is jks and password, jetty can deploy https.