1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
| # View single certificate
echo | openssl s_client -showcerts -servername [gnupg.org](http://gnupg.org) -connect [gnupg.org:443](http://gnupg.org:443) 2>/dev/null | openssl x509 -inform pem -noout -text | tee output.log
openssl pkcs7 -print_certs -in old.p7b -out new.crt
# openssl pkcs7 -print_certs -in old.p7b -out new.cer
# generate RSA public/private key
openssl genrsa -des3 -out darvein.pem 2048
# export RSA public key
openssl rsa -in private.pem -outform PEM -pubout -out public.pem
# export RSA private key
openssl rsa -in private.pem -out private_unencrypted.pem -outform PEM
openssl s_client -connect [www.google.com:443](http://www.google.com:443)
ncat --ssl localhost 30001
rts crl newcerts private
# generating CA's keypair with RSA - DES
openssl genrsa -des3 -out private/root-ca.key 4096
# create CSR
openssl req -new -key private/root-ca.key -out root-ca.csr -config ./openssl.cnf
# creating our signing certificate, 1 year
openssl ca -config ./openssl.cnf -create_serial -out root-ca.crt -days 365 -keyfile private/root-ca.key -selfsign -infiles root-ca.csr
|