Playback platform with SSL certificates from encryption

I am trying to understand how to use the certificates I received to encrypt using my standalone game application. I turned off my server and ran certbot, which generated 4 files (cert.pem, chain.pem, fullchain.pem, privatekey.pem), but I don’t know how to make the game application use them.

I am using version 2.5.4 for the playback platform.

+5
source share
1 answer

Play uses Java key stores to configure certificates and SSL keys.

So you have to do this:

  • Convert your encryption files to PKCS12
  • Convert PKCS12 to a keystore
  • Configure playback to use keystore

1. Cert and the key to the PKCS12 file

openssl pkcs12 -export -in server.crt -inkey server.key \ -out server.p12 -name [some-alias] \ -CAfile ca.crt -caname root 

2. Convert PKCS12 to Keystore

 keytool -importkeystore \ -deststorepass [changeit] -destkeypass [changeit] -destkeystore server.keystore \ -srckeystore server.p12 -srcstoretype PKCS12 -srcstorepass some-password \ -alias [some-alias] 

3. Configure playback to use the keystore

 /path/to/your/app/app_name_script -Dhttps.port=443 -Dplay.server.https.keyStore.path=[keyStore-location] -Dplay.server.https.keyStore.password=[keyStore-password] 
+8
source

All Articles