zoukankan      html  css  js  c++  java
  • startssl 申请证书,并在Nginx, apache, Tomcat上使用

    tomcat: http://blog.csdn.net/buyaore_wo/article/details/5771470

    apache: http://blog.mowd.tw/index.php?pl=950

    Nginx: http://blog.nicky1605.com/the-free-ssl-configuration-startssl-on-nginx.html

    简要:

    apache:

    SSLCertificateFile /etc/pki/tls/certs/ssl.crt 
    SSLCertificateKeyFile /etc/pki/tls/private/ssl.key 
    SSLCertificateChainFile /etc/pki/tls/sub.class1.server.ca.pem 
    SSLCACertificateFile /etc/pki/tls /ca.pem

    tomcat:

    选Create PFX file。。。。。。。。。

    输入之前保存的两个密文信息及密码

        <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
                   maxThreads="150" scheme="https" secure="true"
                   keystoreFile="证书路径 " keystorePass="密码  keystoreType="PKCS12" 
                   clientAuth="false" sslProtocol="TLS" />

    Nginx:

     listen       443;
     ssl    on;
     ssl_certificate    /usr/local/nginx/conf/Startssl.crt;   #你从StartSSL下载证书放的路径
     ssl_certificate_key     /usr/local/nginx/conf/nicky1605.key;  #openssl生成key路径
     ssl_session_timeout 5m;
  • 相关阅读:
    loopback 03
    loopback 02
    loopback 01
    node.js整理 02文件操作-常用API
    node.js整理 01代码的组织和部署
    express-21 静态内容
    coffeeScript学习02
    coffeeScript学习01
    jade学习02
    Android 读取Assets中资源
  • 原文地址:https://www.cnblogs.com/cmsd/p/3615642.html
Copyright © 2011-2022 走看看