# cd /etc/pki/tls/certs/
# /usr/bin/openssl req -utf8 -newkey rsa:1024 -keyout server.key -nodes -x509 -days 36500 -out ftp.crt -set_serial 0
Generating a 1024 bit RSA private key
writing new private key to 'server.key'
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
Country Name (2 letter code) [XX]:JP
State or Province Name (full name) :Tokyo
Locality Name (eg, city) [Default City]:Nakano-ku
Organization Name (eg, company) [Default Company Ltd]:Hoge Co., Ltd.
Organizational Unit Name (eg, section) :Management Department
Common Name (eg, your name or your server's hostname) :www.example.com
Email Address :firstname.lastname@example.org