官术网_书友最值得收藏!

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:

Self-signed certificates aren't validated by browsers and are not intended for production. They should be used for internal and testing purposes only.
主站蜘蛛池模板: 靖江市| 禄劝| 托克逊县| 贡觉县| 邯郸县| 深泽县| 丹江口市| 张家口市| 乐山市| 衢州市| 盐亭县| 巴林左旗| 合川市| 芒康县| 葫芦岛市| 特克斯县| 松溪县| 田东县| 德庆县| 剑阁县| 华容县| 东至县| 马关县| 奉节县| 凤冈县| 富源县| 临湘市| 商都县| 黔南| 连云港市| 鄂托克前旗| 常熟市| 鸡泽县| 永平县| 进贤县| 远安县| 榆树市| 榕江县| 镇宁| 中阳县| 河南省|