openssl req -x509 -nodes -days 7300 -newkey rsa:2048 -keyout vsftpd.pem -out vsftpd.pem
Generates a 2048 bit selfsigned public key (in this case for ssl over vsftpd)
To read the text form of the key
openssl x509 -in /usr/share/ssl/certs/vsftpd.pem -noout -text
To generate a CA request
openssl req -x509 -new -nodes -out server.csr
openssl rsa -in privkey.pem -out server.key
Generates the public/private key
|