Generating Certificates Using OpenSSL
1. Method of Generating RSA Keys
openssl genrsa -des3 -out privkey.pem 2048 This command will generate a 2048 bit The key, there is a password encrypted by the des3 method. If you don't want to enter the password every time, you can change it to: openssl genrsa -out privkey.pem 2048 suggests using a 2048-bit key, less than this may be unsafe or It will be insecure soon.
2, generate a certificate request openssl req -new -key privkey.pem -out cert.csr this command will generate a certificate request, of course, the previously generated key privkey.pem file will be used here Generate a new file cert.csr, a certificate request file that you can use to apply for a digital certificate from a digital certificate authority (CA). CA will give you a new file cacert.pem, that is your digital certificate.
If you are doing your own testing, then the applicant and the issuing authority of the certificate are all. You can use the following command to generate a certificate: openssl req -new -x509 -key privkey.pem -out cacert.pem -days 1095 This command will generate a digital certificate cacert.pem
Configure nginx
server{listen 443;ssl on;ssl_certificate /var/www/sslkey/cacert.pem;ssl_certificate_key /var/www/sslkey/privkey.pem;server_name www.sklinux.com ;index index.html index.htm index.php;root /var/www/sklinux.com;}
under Windows we have the power management system is very familiar with, we can achieve STR, STD and
Do you know what a Linux system is? Some users dont know much about Linux. Linux is a free and free
Layer 2 Tunneling Protocol (L2TP) is an industry standard Internet tunneling protocol that uses UDP
The Linux boot file is stored in the grub.conf configuration file in the /boot/grub/directory. 1.
Linux disk partitioning, formatting, verification, mounting basic tutorial
RHEL5.5 install GCC compiler environment tutorial
How to set Sysctl.conf to improve Linux performance (the most complete sysctl.conf excellent
Linux common tips: teach you the same network card configuration multiple IP
JFS System in Linux Server Operating System Log Files
Installing Arch Linux in my Defy
Simple steps to configure NFS under Linux
Using Nginx as both a web cache server and load balancing
Windows7 system optimization makes the system more secure (1)
How does Win10 change the system color default value (the color is abnormal)
Simple steps to close the Win7 update prompt
Apple COO: Windows 7 will stimulate users to switch to Mac
Win7 dual system login password forgotten how to cope with the popularity of
Xp system optimization program (1)
Win7 script settings error page content can not be copied how to do?
How does Win10 lock the screen? Windows10 system lock screen settings tutorial
Computer boot always comes out dll file is missing,
How to clear the arp cache under Win7 to prevent arp attack and arp spoofing