我将尝试解释使用.pfx文件的最简单方法,该文件可用于在NGINX上安装SSL。

我们首先使用openssl使用以下命令提取CRT文件

openssl pkcs12 -in ./YOUR-PFX-FILE.pfx -clcerts -nokeys -out domain.crt
然后使用以下命令提取私钥

openssl pkcs12 -in ./YOUR-PFX-FILE.pfx -nocerts -nodes -out domain.rsa

nginx配置

server {
 listen 443 ssl;
 server_name domain.com domain.com;
 ssl_certificate /path/to/your/CRT_file/domain.crt;
 ssl_certificate_key /path/to/your/RSA_file/domain.rsa;

 root /mnt/coming-soon/bushbeans;
 index index.html;
 include /etc/nginx/mime.types;
}

参考:https://blog.knoldus.com/easiest-way-to-setup-ssl-on-nginx-using-pfx-files/#comments

centos 安装redis 5.0

参考:https://redis.io/download $ cd /apps/softs/ $ wget http://download.redis.io/releases/redis-5.0.5.tar.gz $ tar xzf redis-5.0.5.tar.gz $ cd red...

阅读全文

centos编译安装keepalived

1.下载keepalived包 下载地址:https://www.keepalived.org/download.html $ cd /opt $ wget https://www.keepalived.org/software/keepalived-2.0.16.tar.gz...

阅读全文

centos 7 安装 elasticsearch,Kibana

centos 7 安装 elasticsearch 1.打开网址 https://www.elastic.co/downloads/elasticsearch 2.复制 RPM 包的下载地址: https://artifacts.elastic.co/downlo...

阅读全文

评论已经关闭。