一、安装和编译证书模块
[root@master nginx]# wget https://nginx.org/download/nginx-1.25.3.tar.gz
[root@master nginx]# tar -zxvf nginx-1.25.3.tar.gz
[root@master nginx]# cd nginx-1.25.3
[root@master nginx]# ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-stream --with-stream_ssl_module
[root@master nginx]# make && make install
#查看编译是否成功
nginx -V

二、上传证书到指定的路径下
3.1、上传证书到/usr/local/nginx/conf/ssl目录下
#创建存放证书的路径方便管理
mkdir -p /usr/local/nginx/conf/ssl
#上传证书

3.2、查看证书的详情
openssl x509 -in /usr/local/nginx/con