root # openssl genrsa -out www.l-penguin.idv.tw.key 1024 Generating RSA private key, 1024 bit long modulus ......++++++ ........++++++ e is 65537 (0x10001) root # root # openssl req -new -key www.l-penguin.idv.tw.key -out www.l-penguin.idv.tw.csr 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) [GB]:TW State or Province Name (full name) [Berkshire]:Taipei County Locality Name (eg, city) [Newbury]:Jhonghe City Organization Name (eg, company) [My Company Ltd]:l-penguin Organizational Unit Name (eg, section) []:l-penguin Common Name (eg, your name or your server's hostname) []:www.l-penguin.idv.tw Email Address []:steven@ms.ntub.edu.tw Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: An optional company name []:
root # root # ls -l total 8 -rw-r--r-- 1 root root 745 Jun 23 00:13 www.l-penguin.idv.tw.csr -rw-r--r-- 1 root root 887 Jun 23 00:09 www.l-penguin.idv.tw.key root # 憑證簽署: