1, first edit the configuration file (destination indicates the CA directory /etc/pki/CA)
#vim /etc/pki/tls/Openssl.cnf
[ CA_default ]
dir = /etc/pki/CA # Where everything is keptcerts = $dir/certs # Where the issued certs are keptcrl_dir = $dir/crl # Where The issued crl are keptdatabase = $dir/index.txt # database index file.
# After the modification is completed, you can save and exit
2, and make the CA's own private key stored as
Switch to CA directory
#(umask 77; openssl genrsa 2048 > private/cakey.pem)
The generated key is stored in /etc/pki/CA/private/cakey .pem
Generate a self-signed certificate (file name cacert.pem)
command# openssl req -new -x509 -key private/cakey.pem -out cacert.pem -days 3655
Create the necessary directories and files needed for CA work
mkdir certs newcerts crl
touch index.txt serial
echo 01 > serial #serial needs one The initial number is sent to 01 with the echo<<>
3, the CSR certificate signing request (a server needs to use the http service) )
Make your own private key
#openssl genrsa 1024 > httpd.key
Create a CSR with your own private key (CSR contains your own public key and yourself) Basic information)
#openssl req -new -key httpd.key -out httpd.csr
4, CA authentication public key (CA to CSR certification, signing) #openssl ca -in httpd.csr -out httpd.crt
Linux kernel is very stable, but it is still inevitable to encounter a crash, get the memory image w
Multiple startup files Adding multiple startup files by saying that compilation will be wrong. But t
IAP, the full name is In-Application Programming, Chinese is interpreted as Programming in the prog
In the various Linux distributions now, the enterprise version of red hat is relatively safe. For t
Centos setting folder open mode: open folder in the same window
Rel5 under the transparent proxy configuration tutorial
What is the meaning of the Linux file name color
Redis Installation and Configuration Tutorial
FTP user and apache user permissions under LINUX
OpenIPMP test environment installation basic tutorial under Windows
Linux kernel space and user space information interaction method
Shorewall firewall installation and configuration method under Linux
What is the command apachectl in Linux
How to re-hang the mongo replica set slave server for a long time to re-attach to the set
How to use U disk to install xp system One button U disk boot disk production tool tutorial
Win7 add shared printer login failed
Win XP installation parameters revealed
What should I do if Win10 is pressed on the keyboard? Win10 closes the method of quick boot
There are pictures with the truth. The latest Windows8 system screenshots enjoy (5)
How to close the Win10 system user account control?
Teach you a second to remove the Windows7 desktop shortcuts small arrow
Win10 (wp10) music application new features: no gap play