[root@iv-yedtc38xs0cva4fjm6ortest-key]# openssl req -x509 -nodes -days 365 -newkey rsa:2048 \ -keyout key.pem -out cert.pem .......+....+.....+...+.+..+..........+..+.+............+..+......+.......+..+.+.....+............+.......+..+...............+.+............+..+.............+.....+++++++++++++++++++++++++++++++++++++++*..+.....+...+.+..+....+++++++++++++++++++++++++++++++++++++++*........+..+..........+.....+..........+...+...+...+..+...+......+...+.+......+..........................+....+......+...+..+...+......+.+.....+.............+..+....+...+......+..+.......+..+...+......+............+...+......+.+..++++++ .+...........+...+.+.....+.........+...+....+......+..............+.+..............+...+...+....+++++++++++++++++++++++++++++++++++++++*.+++++++++++++++++++++++++++++++++++++++*.......+.....+.+.....+..........+..+.......+...+..+....+.........+.....+...++++++ ----- 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]:CN State or Province Name (full name) []:beijing Locality Name (eg, city) [DefaultCity]: Organization Name (eg, company) [DefaultCompanyLtd]: Organizational Unit Name (eg, section) []: Common Name (eg, your name or your server's hostname) []:www.test.com Email Address []: [root@iv-yedtc38xs0cva4fjm6or test-key]# ll total 8 -rw-r--r-- 1 root root 1346 Jan 31 12:38 cert.pem -rw------- 1 root root 1704 Jan 31 12:38 key.pem