目录

工欲善其事

实践出真知

活跃标签: linux java mysql 待分类 windows js win10 springboot pdf idea docker 电路 nginx esp32 macOS vue git Arduino maven ffmpeg

存档:

标签: ssl (2)

【ssl】本机生成nginx可用的ssl证书

1、nginx安装 略,不要忘记安装ssl模块 2、ssl证书生成 生成key openssl genrsa -out server.key 1024 根据私钥生成证书申请,创建签名请求的证书(CSR)注意 ch那边必须写 openssl req -new -key server.key -out server.csr You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. -----.....

电脑本机搭建https开发环境

生成SSL证书 建立目录certs,专门用来存放证书和私钥 # 创建目录 mkdir certs # 进入目录 cd certs/ # 生成key的配置文件 vim localhost.conf 配置文件内容如下,可自作修改 [ req ] default_bits = 2048 # RSA的2048是公认较比较安全的key长度 default_keyfile = server-key.pem distinguished_name = subject req_extensions = req_ext x509_extensions = x509_ext string_mask = utf8only [ subject ] countryName = Country Name (2 letter code) countryName_default = US stateOrProvinceName = State or Province Name (full name) stateOrProvinceName_default = NY localityName = Locality Na.....