OpenSSL Fedora 13
How to install OpenSSL on Fedora 13
- Install OpenSSL
yum install openssl
How to configure OpenSSL on Fedora 13
- Change your working directory to /etc/pki/CA
cd /etc/pki/CA
- Create a file that holds the database of certificates
touch index.txt
- Create a file that holds the next certificate serial number
echo '01' > serial
- Create a file that holds the next Certificate Revocation List serial number
echo '01' > crlnumber
- Make a copy the systems default openssl configuration file for our use
cp /etc/pki/tls/openssl.cnf openssl.cnf
- Open the /etc/pki/CA/openssl.cnf file for editing
- Change line 42
from: dir = http://www.cnblogs.com/CA # Where everything is kept
to: dir = . # Where everything is kept
- Change line 50
from: certificate = $dir/cacert.pem # The CA certificate
to: certificate = $dir/certs/ca.crt # The CA certificate
- Change line 55
from: private_key = $dir/private/cakey.pem # The private key
to: private_key = $dir/private/ca.key # The private key
- Save and Close the file
- Make the /etc/pki/CA/openssl.cnf file not world readable
chmod 600 openssl.cnf
posted @
2012-11-01 20:22
alxe_yu
阅读(
355)
评论()
收藏
举报