- NGINX Cookbook
- Tim Butler
- 168字
- 2021-07-03 00:04:33
Getting ready
To install an SSL, there are three components we need to start with. The first is Certificate Signing Request (CSR). This defines the information which will be contained within the certificate and includes things such as the organization name and domain name. The CSR is then sent to a CA or used to generate a self-signed certificate.
To make it easy for this recipe, we'll use a self-signed certificate. We can easily generate the CSR and then the private key and public certificate with one command. For example, here's how to generate a CSR with a 2048 bit key and 600 day expiry:
openssl req -x509 -new -newkey rsa:2048 -nodes -keyout private.key -out public.pem -days 600
This example will ask a series of questions for the CSR and then automatically generate the private key (private.key) and the public certificate (public.pem). Consider the following example:

- Go Web編程
- Learning Flask Framework
- HTML5 and CSS3 Transition,Transformation,and Animation
- Python機器學(xué)習(xí)算法與實戰(zhàn)
- jQuery開發(fā)基礎(chǔ)教程
- C++面向?qū)ο蟪绦蛟O(shè)計習(xí)題解答與上機指導(dǎo)(第三版)
- ServiceNow:Building Powerful Workflows
- OpenResty完全開發(fā)指南:構(gòu)建百萬級別并發(fā)的Web應(yīng)用
- Learning Docker Networking
- Python面試通關(guān)寶典
- 軟件測試實驗實訓(xùn)指南
- OpenCL異構(gòu)并行計算:原理、機制與優(yōu)化實踐
- Implementing OpenShift
- 前端程序員面試筆試通關(guān)寶典
- INSTANT Jsoup How-to