Home | Mirror | Search |
$ cat /etc/news/sasl.conf
創建證書
$ sudo openssl req -new -x509 -nodes \ -out cert.pem -days 366 \ -keyout cert.pem Generating a 1024 bit RSA private key ....................++++++ ...............................++++++ writing new private key to '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) [GB]:CN State or Province Name (full name) [Berkshire]:Guang dong Locality Name (eg, city) [Newbury]:Shen Zhen Organization Name (eg, company) [My Company Ltd]:netkiller Organizational Unit Name (eg, section) []:netkiller Common Name (eg, your name or your server's hostname) []:netkiller.8800.org Email Address []:openunix@163.com
設置權限
$ sudo chmod 640 cert.pem