First execute the following command to generate a 4096-bit key
openssl genrsa -des3 -out hupohost.key 4096 Then he will ask you to enter the password for this key file. Input is not recommended. Because I will use it for nginx in the future. You must verify this PAM password each time you reload the nginx configuration.
The password must be entered when it is generated. You can delete and delete
mv ssl.key xxx.keyopenssl rsa -in xxx.key -out hupohost.keyrm -rm xxx.key
Then generate a certificate request file based on this key file
openssl req -new -key hupohost.key -out hupohost.csr When the above command is generated, you have to fill in a lot of things and look at it one by one (can be casual, after all, this is a certificate generated by yourself)
According to this 2 files generate crt certificate file
openssl x509 -req -days 3650 -in hupohost.csr -signkey hupohost.key -out hupohost.crt Here 3650 is the certificate validity period recommended 3650 haha. This is everyone's free. The last files used are the key and crt files.
If you need to use pfx you can use the following command to generate openssl pkcs12 -export -inkey hupohost.key -in hupohost.crt -out hupohost.pfx
in the server that needs to use the certificate nginx configuration file Add the following configuration to the node
ssl on;ssl_certificate /home/hupohost.crt;ssl_certificate_key /home/hupohost.key;ssl_session_timeout 5m;ssl_protocols TLSv1 TLSv1.1 TLSv1.2;ssl_ciphers ALL:!ADH:!EXPORT56 :RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;ssl_prefer_server_ciphers on; then restart nginx and you're done
The most important thing is that access is https access
server{ Listen 443;ssl on;ssl_certificate /usr/local/nginx/conf/vhost/ssl/hupohost.crt;ssl_certificate_key /usr/local/nginx/conf/vhost/ssl/hupohos.key;}Port must be port 443
Nginx starts with version 0.7.48 and supports Squid-like caching. This cache uses the URL and relate
When we write the shell, there will be such a scene: For example: I want to back up the passwd fil
We all know that lvm can expand the file system online, the function is very convenient, but if the
Running live55 under linux shows the figure: not getting ip: ip is 0.0.0.0 live555 does not know th
Three lightweight WebServer--lighttpd, thttpd, shttpd introduction
Neighbor subsystem of linux protocol stack (garbage collection seven)
Parse the Linux root file system mount process
How to set the partition where grub is located
Wrong way to modify linux system file permissions
Linux using NTP service management /synchronization server time
The difference between Linux and Windows
Linux has gone through 20 years, and the future will be better.
Example of initialization file for rom under ISE
Teaching: Help you easily get the software installation of Linux system
Sharing two ways to adjust the Win7 time synchronization frequency
Configuring Group Policy and Modifying the Registry Let Win7 Task Manager Work
Master's network server security configuration skills
How to quickly close the program window in Windows 7?
Windows quickly opens the application through "run"
Online management plugin alternative experience
How to install Mongo extensions on Linux systems
How to remove the operation center icon in the notification area of Win10 taskbar
Win7 beautification strategy: replace imageres.dll, icon full variant