first step is configured well
7. Paste the E2FSCK.ORG.CSR contents of the first step here
8. Then is the next step, add domain name what the simple thing
9. Finally see a piece of code is a CRT certificate, save it, I named E2FSCK.ORG.CRT here and then put it to the/usr/local/nginx/conf directory (you put it anywhere)
10. In order to enable some browsers to identify the certificate, it is also necessary to put the CA root certificate with our cer
The SSL module is not installed by default, and if you want to use the module, you will need to specify the –with-http_ssl_module parameter at compile time, and the installation module relies on the OpenSSL library and some reference files, usually not in the same package. Usually this file name is similar to Libssl-dev.Generate certificateYou can generate a simple certificate by using the following steps:First, go to the directory where you want to c
server {Listen 443;server_name hsggj.docker.com;The address you define yourself;SSL on;SSL_CERTIFICATE/ETC/NGINX/SSL/NGINX.CRT;The location of the CRT; ssl_certificate_key/etc/nginx/ssl/nginx.key; where key is located;}If the certificate will not be demonstrated, my blog has
https://mozilla.github.io/server-side-tls/ssl-config-generator/
Https://github.com/mozilla/server-side-tls
Different enhanced SSL config is generated based on different server versions. See Configuration is disabled SSLv3, enabled enhanced encryption algorithm and added HSTS feature support.
Mozilla's Server Side TLS guidelines has a detailed description of the configuration.
The following is an example of
All HTTP requests in the recent project have to be upgraded to HTTPS, and an SSL certificate with an Nginx configuration is practiced.
Since our certificate is issued by the company, the experience of applying for a certificate is omitted, and the application for free certificate can be searched by itself.
The certificate received is divided into two files, one is XXX.CRT, the other is Xxx.key, and the corr
Generate private keys (key) and certificate request files (CSR)
Open the terminal and enter the following command
OpenSSL req-new-newkey rsa:2048-nodes-keyout domain.key-out DOMAIN.CSR
The build process asks several common questions, such as city, country, and so on.
Finally will ask challenge password, the input time remembers is OK.
After the above command is executed, the current directory will have "Domain.key" and "DOMAIN.CSR" files
Goddy Certificate
After the purchase of
The company used a free STARTSSL certificate, I heard that iOS do not trust these free verification of the non-strict certificate, the company decisively purchased a wildcard domain name certificate, in fact, do not seem to have nothing to do, mainly to submit the app when you have to explain the reason, the possibility of rejection is relatively large.Before replacing the certificate, think about keeping the original free certificate, and then use the new domain name to do the test. Result the
Nginx + SSL Optimized configuration:1 #http段添加如下配置项:2 3 http {4 5 ssl_prefer_server_ciphers on; #设置协商加密算法时, priority is given to the encryption suite on our service side, not the client browser's encryption suite. 6Ssl_protocols TLSv1 TLSv1.1TLSv1.2; #协议安全设置7Ssl_ciphers all:!kedh! adh:rc4+rsa:+high:+medium:+low:+sslv2:+EXP; #加密套件 Ssl_ciphers Select the encryption suite, the packages (and the order)
Free public certificate can be obtained from the startcom website, url: https://startssl.com/, register an account, and then press Certificates Wizard steps to fill in the information
The next step is to fill in the CSR certificate information, you can download the Red Arrows at the StartComTool.exe generation, the production of CSR certificates will also generate a. Key's private key file, which is later used when configuring the Nginx certificate.
First to apply for SSL certificate, recommended to Vauton, Tencent Cloud, Aliyun to apply for a free SSL certificate, convenient not to say, important is through the major browser verification.
Nginx configuration, configure the following items in server:
Listen 443; server_name www.daixh.com; #修改成你的域名, To be consistent with the requested certificate domain
key)There is an open-source private key export tool called java-exportpriv. It is a simple java program. After downloading it, you can refer to its instructions, compile it, and run it. It is very simple and I will not be too long..3.2 Create a certificate chainUnlike Apache, Nginx does not have the Certificat Chain parameter, so you need to merge your certificate and intermediate certificate. It's easy to merge certificates by creating a first file
Create a server private keyOpenSSL genrsa-des3-out Server.key 1024Create a certificate for the signing request (CSR)OpenSSL Req-new-key server.key-out SERVER.CSRload SSL-supported Nginx and remove the required password when using the above private key:CP Server.key server.key.org OpenSSL rsa-in server.key.org-out server.keyThe last token certificate uses the above private key and the CSROpenSSL x509-req-day
Default: When the SSL protocol is used for handshake negotiation, the default is not to send the host name, that is, in the form of IP for HTTPS connection handshake negotiation, which leads to a problem, when there are multiple virtual hosts on a server using the same IP,Nginx will be an error in the Counter-generation!SNI (server Name Indication): is to solve a server, the same IP, the use of multiple dom
Share how I step-by-step to configure SSL on Nginx.First, make sure that the OpenSSL library is installed and that the –with-http_ssl_module parameter is used when installing Nginx.Beginner or rookie recommends using LNMP for one-click installation.To generate a certificate:Enter the directory where you want to generate the certificateCd/usr/local/nginx/confCreate a server private key using OpenSSL and ente
Nginx + Apache + SSL + SVN svn copy 502 Bad Gateway
When Nginx is used to access the SVN server through https, the following error occurs when svn copy is executed:Svn: Server sent unexpected return value (502 Bad Gateway) in response to COPY request
Solution:Location /{Proxy_redirect off;Proxy_set_header Host $ host;Proxy_set_header X-Forwarded-Host $ host;Proxy
Because the company project has to use the link to HTTPS, to get a certificate, after configuration, HTTPS can be normal access, but the previous HTTP is a 400 error, nginx configuration is as follows:
The code is as follows
Copy Code
server {Listen default backlog=2048;Listen 443;server_name 111cn.net;root/var/www/html;SSL on;SSL_CERTIFICATE/USR/LOCAL/TENGINE/SSLCRT/111CN.NET.CR
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.