All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ssl.README Maven / Gradle / Ivy

There is a newer version: 3.3.3
Show newest version
##################################
# 1. Generate RSA key pairs
# 2. Use it to create x509 CA cert
# 3. Convert ca.key to der format so Java can load it
# 4. Create CA key store to hold the cert which will be used as client's trust store when sending HTTPS request

openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -out ca.key
openssl req -new -x509 -days 3600 -key ca.key -subj "/CN=Test CA/O=Test Org" -out ca.crt
openssl pkcs8 -topk8 -outform DER -in ca.key -out ca.der -nocrypt
keytool -import -alias ca -file ca.crt -keystore ca.jks

# input 'passwd' when prompted
# answer 'yes' when asked




© 2015 - 2025 Weber Informatics LLC | Privacy Policy