- NGINX Cookbook
- Tim Butler
- 221字
- 2021-07-03 00:04:33
How it works...
Here's what the directives do:
- listen 443 ssl: Firstly, we tell NGINX to listen on port 443 (the HTTPS standard) using the SSL protocol. Previously, we'd simply told NGINX to listen on port 80, and it used HTTP by default.
- ssl_certificate: This is the location of the public key, which needs to be in the PEM format. If your CA also provided intermediate certificates, then they also need to be in this file.
- ssl_certificate_key: This is the location of the private key, and it also needs to be in PEM format. This key needs to be kept safe to ensure the integrity of your certificate—it should only reside on the server.
- ssl_protocols: Here, we specify what variants of the SSL protocols we want to make available. The easiest default is to support Transport Layer Security (TLS), which is the successor to the older SSL protocol. As both SSLv2 and SSLv3 have had significant flaws exposed in recent years, they should only be enabled as a last resort.
- ssl_ciphers: The ciphers dictate the type of encryption used and at what level. The default of HIGH:!aNULL:!MD5 means that we use only high grade (128-bit and higher), authenticated (the exclamation means NOT) encryption and not MD5 hashing. The defaults are secure and shouldn't be changed without a good reason.
推薦閱讀
- C及C++程序設(shè)計(jì)(第4版)
- AngularJS Testing Cookbook
- OpenShift開發(fā)指南(原書第2版)
- Python 深度學(xué)習(xí)
- Quarkus實(shí)踐指南:構(gòu)建新一代的Kubernetes原生Java微服務(wù)
- Java EE 8 Application Development
- FPGA Verilog開發(fā)實(shí)戰(zhàn)指南:基于Intel Cyclone IV(進(jìn)階篇)
- Scala編程(第5版)
- QPanda量子計(jì)算編程
- 視窗軟件設(shè)計(jì)和開發(fā)自動(dòng)化:可視化D++語言
- R的極客理想:量化投資篇
- MongoDB Administrator’s Guide
- 劍指大數(shù)據(jù):企業(yè)級(jí)電商數(shù)據(jù)倉庫項(xiàng)目實(shí)戰(zhàn)(精華版)
- 零基礎(chǔ)入門學(xué)習(xí)C語言:帶你學(xué)C帶你飛
- FORTRAN程序設(shè)計(jì)權(quán)威指南