openssl s_client -connect {HOSTNAME}:{PORT} -showcertsscripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory
sudo apt-get install -y libssl-dev
OpenSSL – Public Certificate and Private key
privatekey -> openssl genrsa \[-out filename\] \[-passout arg\] \[-des\] \[-des3\] \[-idea\] \[-f4\] \[-3\] \[-rand file(s)\] [numbits]
public certificate -> $ openssl req -new -x509 -nodes -sha1 -days 365 -key host.key > host.cert