PEM to PKCS12 bundle openssl
Bundle cert+key+chain into .p12 for Java keystores / Windows imports
openssl pkcs12 -export -in cert.pem -inkey key.pem -certfile ca-chain.pem -out bundle.p12 -name <name>
more openssl
all 27 commands →
STARTTLS protocol probe
openssl s_client -connect <host>:5432 -starttls postgres -showcerts </dev/null 2>/dev/null
Generate Ed25519 key
openssl genpkey -algorithm ed25519 -out ed25519.pem
Test specific TLS protocol
openssl s_client -connect <host>:443 -tls1_2 </dev/null 2>&1 | grep -E 'Protocol|Cipher'
Generate RSA private key
openssl genrsa -out private.key 4096
Generate Ed25519 key pair
openssl genpkey -algorithm ed25519 -out private.key && openssl pkey -in private.key -pubout -out public.key