openssl genrsa -out key.pem 2048
openssl rsa -in key.pem -pubout -out key.pub
openssl req -x509 -new -days 365 -key key.pem -out cert.crt