RSA 4096 algorithm with SHA256 - will request subject details
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365
RSA 1024 algorithm with SHA1 - forcing just the Subject name without input
openssl req -x509 -newkey rsa:1024 -sha1 -keyout key.pem -out cert.pem -days 365 --subj "/CN=server"
openssl rsa -in original.key -out new.key
openssl rsa -in key.pem -text
openssl x509 -in cert.pem -text