#关闭防火墙 chkconfig iptables off service iptables stop #关闭SELINUX sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config setenforce #上传openresty_auto_install到 /usr/local/software mkdir /usr/local/software cd /usr/local/software/openresty_aut…
nginx https ssl 设置受信任证书[原创] 1. 安装nginx 支持ssl模块 http://nginx.org/en/docs/configure.html yum -y install openssh openssh-devel (http_ssl_module 模块依赖openssh) ./configure --sbin-path=/usr/local/nginx/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-pat…
这里使用的是HttpComponents-Client-4.1.2 package com.jadyer.util; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.security.KeyManagementException; import java.security.KeySto…
Chrome下自签名证书提示无效的问题 发现chrome验证证书很严格,必须带有Subject Alternative Name.签发csr时,修改openssl.cnf : vi /etc/ssl/openssl.cnf (windows  所在目录 :\OpenSSL\bin\cnf\openssl.cnf )在[ req ]节添加req_extetions = v3_req 生成 CSR 文件时读取名叫 v3_req 的节的配置,[ v3_req ] # Extensions to add…
iOS 中可用的受信任根证书列表 iOS 受信任证书存储区中包含随 iOS 一并预装的受信任根证书. 关于信任和证书 以下所列的各个 iOS 受信任证书存储区均包含三类证书: “可信”的证书用于建立信任链,以验证由受信任根证书签署的其他证书:例如,与网页服务器建立安全连接.IT 管理员在创建 iOS 配置描述文件时,无需提供这些受信任的根证书. “始终询问”的证书不受信任,但不会被阻止.使用其中任一证书时,系统将提示您选择是不是信任这个证书. “已阻止”的证书视为已被盗用,将永远不再受信任. h…
一. 申请证书1. 到受信任的机构申请 略 2. 到自建的证书服务器申请 a. 安装证书服务 通过控制面板中的“添加/删除程序”,选择“添加/删除Windows组件”.在Windows组件向导中找到“证书服务”,安装即可,基本都是下一步(需要系统盘或者指定系统镜像的I386文件夹). 如果觉得这期间设置有问题,删除此组件重新安装即可(此过程中重新设置). 安装的过程中会提示需要IIS及ASP,单击“是”即可. 安装完毕,申请证书的地址就是http://你的证书服务器IP/certsrv/ b. …
1. 安装nginx 支持ssl模块 http://nginx.org/en/docs/configure.html yum -y install openssh openssh-devel (http_ssl_module 模块依赖openssh) ./configure --sbin-path=/usr/local/nginx/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid…
一.安装必要的包 yum install openssl openssl-devel 二.配置编译参数,增加对SSL的支持 ./configure –with-http_ssl_module 三.修改nginx配置文件 1.取得受信任机构颁发的证书 包括: private.key 私钥 certificate.crt 网站证书 ca_bundle.crt 颁发机构证书 存放到/usr/local/nginx/conf目录下 2.修改/usr/local/nginx/conf/nginx.conf…
iOS 受信任证书存储区包含随 iOS 预安装的可信根证书.  https://support.apple.com/zh-cn/HT205205 关于信任和证书 iOS 9 受信任证书存储区包含三类证书: 可信的根证书用于建立信任链,以验证由可信的根签署的其他证书,例如,与 Web 服务器建立安全连接.当 IT 管理员创建 iPhone.iPad 或 iPod touch 的配置描述文件时,无需提供这些可信的根证书. 始终询问的证书不受信任,但不受阻止.使用其中一个证书时,系统将提示您选择是否信…
certmgr.exe -add "证书.cer" -s -r localMachine Disallowed 导入授信机构 certmgr -add "证书.cer" -s -r currentUser root 其中: 证书.cer是证书文件: localMachine是指本地计算机(相对的是当前用户): Disallowed是证书存储分区——不信任的证书.其他的存储分区对应的名称可以到注册表HKLM\software\Microsoft\systemcerti…