我将尝试解释使用.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编译安装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...

阅读全文

Linux中查看各文件夹大小命令:du -h –max-depth=1

du [-abcDhHklmsSx] [-L <符号连接>][-X <文件>][--block-size][--exclude=<目录或文件>] [--max-depth=<目录层数>][--help][--vers...

阅读全文

评论已经关闭。