Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
txt
# convert private Key to PKCS#8 format (so Java can read it)
$ openssl pkcs8 -topk8 -inform PEM -outform DER -in private_key.pem -out
private_key.der -nocrypt
# output public key portion in DER format (so Java can read it)
$ openssl rsa -in private_key.pem -pubout -outform DER -out
public_key.der
1 di 3 08/04/23, 18:00
Firefox file:///Users/carmelo.catalano/Dati/Guide/varie/certificati%20ssl.txt
# Generate CA key & certificate - fill out the information when asked for
such as country & organization name.
$ openssl genrsa -out MyRootCA.key 2048
$ openssl req -x509 -new -nodes -key MyRootCA.key -sha256 -days 1024 -out
MyRootCA.pem
# Generate client key & certificate signing request - fill out info
# IMPORTANT: CN / Common Name should be the clients IP or FQDN
$ openssl genrsa -out MyClient1.key 2048
$ openssl req -new -key MyClient1.key -out MyClient1.csr
2 di 3 08/04/23, 18:00
Firefox file:///Users/carmelo.catalano/Dati/Guide/varie/certificati%20ssl.txt
3 di 3 08/04/23, 18:00