openssl

1
openssl rsa -in privateKey.key -check
1
openssl x509 -in cert.pem -noout -issuer -issuer_hash
1
openssl x509 -noout -modulus -in $cert | openssl md5 && openssl rsa -noout -modulus -in $key | openssl md5
1
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /root/compute2.key -out /root/comute2.crt
1
openssl x509 -in $cert -noout -text

fuck keystores

1
2
3
4
openssl pkcs12 -export -chain -in /etc/pki/tls/certs/$file.com.crt -inkey /etc/pki/tls/private/$file.com.key -out combined_plus.pl2 -name $file -CAfile /etc/pki/tls/certs/$file.com.cabundle


keytool -importkeystore -srckeystore combined_plus.pl2 -destkeystore newestkeystore.jks -srcstoretype pkcs12