[root@bbd56c264506 ~]# cd /usr/local/nginx/ [root@bbd56c264506 nginx]# ls client_body_temp conf fastcgi_temp html logs proxy_temp sbin scgi_temp uwsgi_temp [root@bbd56c264506 nginx]# cd conf/ [root@bbd56c264506 conf]# ls fastcgi.conf fastcgi_params koi-utf mime.types nginx.conf scgi_params server.crt server.key uwsgi_params win-utf fastcgi.conf.default fastcgi_params.default koi-win mime.types.default nginx.conf.default scgi_params.default server.csr server.key.org uwsgi_params.default [root@bbd56c264506 conf]# vi nginx.conf [root@bbd56c264506 conf]# [root@bbd56c264506 conf]# [root@bbd56c264506 conf]# [root@bbd56c264506 conf]# ls fastcgi.conf fastcgi_params koi-utf mime.types nginx.conf scgi_params server.crt server.key uwsgi_params win-utf fastcgi.conf.default fastcgi_params.default koi-win mime.types.default nginx.conf.default scgi_params.default server.csr server.key.org uwsgi_params.default [root@bbd56c264506 conf]# openssl genrsa -des3 -out server_test.key 1024 Generating RSA private key, 1024 bit long modulus .............................++++++ ..++++++ e is 65537 (0x10001) Enter pass phrase for server_test.key: Verifying - Enter pass phrase for server_test.key: [root@bbd56c264506 conf]# openssl req -new -key server_test.key -out server_test.csr Enter pass phrase for server_test.key: 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. ----- Country Name (2 letter code) [XX]:ZH State or Province Name (full name) []:JS Locality Name (eg, city) [Default City]:NJ Organization Name (eg, company) [Default Company Ltd]:BOSYUN Organizational Unit Name (eg, section) []:BOSYUN Common Name (eg, your name or your server's hostname) []:test.bosyun.com Email Address []:jun.wang@imgchina.com.cn Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []:123456 An optional company name []:BOSYUN [root@bbd56c264506 conf]# cp server_test.key server_test.key.org [root@bbd56c264506 conf]# openssl rsa -in server_test.key.org -out server_test.key Enter pass phrase for server_test.key.org: writing RSA key [root@bbd56c264506 conf]# openssl x509 -req -days 365 -in server_test.csr -signkey server_test.key -out server_test.crt Signature ok subject=/C=ZH/ST=JS/L=NJ/O=BOSYUN/OU=BOSYUN/CN=test.bosyun.com/emailAddress=jun.wang@imgchina.com.cn Getting Private key
相关推荐
NULL 博文链接:https://hlee.iteye.com/blog/569381
Windows下Nginx配置SSL实现Https访问(包含证书生成)
原文链接:https://blog.csdn.net/m0_37814112/article/details/121617919 说明: 1、证书文件格式为pem和key 2、适用于大量自签证书场景 3、支持域名和ip两种方式
ssl自制全套证书(包含服务器端、客户端、ca端的证书,格式有.crt,.key,.truststore,.keystore,.p12,.cer,.pem等类型),当时要配置webservice接口、tomca、nginx通过ssl访问的证书,弄了好久才生成了一套能使用的。...
通过OpenSSL生成的ssl证书,用于windows下用nginx配置https服务器( OpenSSL创建证书) 无需再下载OpenSSL,配置OpenSSL相关环境,在进行命令生成证书
这里说下Linux 系统怎么通过openssl命令生成 证书。 首先执行如下命令生成一个key
Nginx生成一个自签名的SSL证书脚本
原文链接:https://blog.csdn.net/m0_37814112/article/details/119391879?spm=1001.2014.3001.5501 说明:一键生产nginx https自签证书脚本,真实有效!
linux下,私有ssl证书生成器,通过提示的方式,自动根据域名生成私有ssl证书,包括crt,key
在前面一篇文章中,使用openssl生成了免费证书后,我们现在使用该证书来实现我们本地node服务的https服务需求。假如我现在node基本架构如下: |----项目 | |--- static # 存放html文件 | | |--- index....
2023最新SSL证书在线申请系统源码 | 支持API接口 ...向您介绍我们的在线生成SSL证书系统 支持在线生成SSL证书系统,用户登录可在线申请SSL,后台对接ssl证书API接口 测试运行环境:Nginx+PHP8.0+MySQL5.7
用keytool生成证书,双向SSL认证配置的方法,以Tomcat举例。包含步骤:一、为服务器生成证书;二、为客户端生成证书;三、让服务器信任客户端证书;四、让客户端信任服务器证书。
Linux操作系统,生成SSL加密证书,部署验证。Nginx中间件部署SSL加密证书。
由于生成的证书是jks格式,nginx不能直接用,需要要转成PEM格式,这...该命令将server.jks中别名为lgy.com的SSL证书导出,运行后将在jks2pfx的按照目录产生3个文件: exportfile.key、exportfile.crt、exportfile.pfx;
docker-nginx-auto-ssl:使用Let's Encrypt和Open Resty自动生成SSL证书的Docker映像
Nginx负载均衡 当用户访问nginx定制好的域名时,nginx通过转发到几台真实的站点,通过upstream实现 [root@centos7 vhost]# vim /usr/local/nginx/conf/vhost/load.conf upstream www.tt.com #自定义域名 { # ip_ash...
不连外网,只是局域网访问,软件需要https环境的,可生成免费证书
Linux Nginx 配置SSL访问实例详解 生成证书 可以通过以下步骤生成一个简单的证书: 首先,进入你想创建证书和私钥的目录,例如: $ cd /usr/local/nginx/conf 创建服务器私钥,命令会让你输入一个口令: $ ...
自行颁发不受浏览器信任的SSL证书 手动颁发 xshell登录服务器,使用openssl生成RSA密钥及证书 # 生成一个RSA密钥 $ openssl genrsa -des3 -out tfjybj.key 1024 # 拷贝一个不需要输入密码的密钥文件 $ openssl rsa...
Nginx的SSL证书配置 1、使用openssl实现证书中心 由于是使用openssl架设私有证书中心,因此要保证以下字段在证书中心的证书、服务端证书、客户端证书中都相同 Country Name State or Province Name Locality Name...