<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    This article is dedicated to Junjiang, a member in LowEndTalk.

    In the received email, we would have some long line with the code like bellow :

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    MUST BE INSTALLED ON YOUR WEB SERVER:
    Your SSL Certificate (Formatted for the majority of web server
    software including IIS and Apache based servers):
    -----BEGIN CERTIFICATE-----
    MIIEwjCCA6qgAwIBAgISESG0oF5qDhFRTOer2K4ezFMvMA0GCSqGSIb3DQEBBQUA
    k6zVnkLbO61NznKk7OqVHYS+ZHpo6g==
    -----END CERTIFICATE-----
     
    Intermediate Certificate:
     
    -----BEGIN CERTIFICATE-----
    MIIELzCCAxegAwIBAgILBAAAAAABL07hNwIwDQYJKoZIhvcNAQEFBQAwVzELMAkG
    +MPpZqmyIJ3E+LgDYqeF0RhjWw==
    -----END CERTIFICATE-----

    Copy paste the line from the SSL Certificate and the Intermediate Certificate into one file, for example the file is /etc/ssl/httpd/erawan.me.crt :

    1
    2
    3
    4
    5
    6
    7
    8
    -----BEGIN CERTIFICATE-----
    MIIEwjCCA6qgAwIBAgISESG0oF5qDhFRTOer2K4ezFMvMA0GCSqGSIb3DQEBBQUA
    k6zVnkLbO61NznKk7OqVHYS+ZHpo6g==
    -----END CERTIFICATE-----
    -----BEGIN CERTIFICATE-----
    MIIELzCCAxegAwIBAgILBAAAAAABL07hNwIwDQYJKoZIhvcNAQEFBQAwVzELMAkG
    +MPpZqmyIJ3E+LgDYqeF0RhjWw==
    -----END CERTIFICATE-----

     

    Configure the Nginx

    Because I’m using Minstall for configuring my vps, the Nginx configuration would be at /etc/nginx/host.d/erawan.me.conf :

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    server {
        listen 443 ssl;
        server_name erawan.me;
        ssl_certificate /etc/ssl/http/erawan.me.crt;
        ssl_certificate_key /etc/ssl/http/erawan.me.key;
     
        access_log off;
        error_log /home/erawan/http/logs/erawan.me.log;
        index index.html index.php;
        root /home/erawan/http/erawan.me;
        try_files $uri $uri/ /index.php;
        client_max_body_size 2000M;
     
        include /etc/nginx/conf.d/cache.conf;
        include /etc/nginx/conf.d/deny.conf;
        include /etc/nginx/php.d/erawanarifn.conf;
    }

    Restart the Nginx, and it’s all done :)
    Configuration on Tomcat:


    To install your SSL Certificate, perform the following steps:


    1. Import the appropriate root certificates using:

    $ keytool -import -trustcacerts -keystore mystore.kdb -alias root - file root.cer

    "mystore.kdb" being your keystore.

    2. Import the "yourdomain.cer" file using:

    keytool -import -trustcacerts -keystore mystore.kdb -alias tomcat -file yourdomain.cer

    With "mystore.kdb" being your keystore.

    Update server.xml configuration file:

    1. Open "$JAKARTA_HOME/conf/server.xml" in a text editor.

    2. Find the following section:

    - <!-- 
    Define a SSL Coyote HTTP/1.1 Connector on port 8443 
    --> 
    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" 
    port="443" minProcessors="5" maxProcessors="75" 
    enableLookups="true" 
    acceptCount="100" debug="0" scheme="https" secure="true" 
    useURIValidationHack="false" disableUploadTimeout="true">
    <Factory 
    className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory" 
    clientAuth="false"
    protocol="TLS" 
    keystoreFile="mystore.kdb"
    keystorePass="YOUR_KEYSTORE_PASSWORD" />
    </Connector>

    3. If you want Tomcat to use the default SSL port, change all instances of the port number "8443" to 443.

    4. Start or restart Tomcat


    只有注冊(cè)用戶(hù)登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     

    posts - 0, comments - 21, trackbacks - 0, articles - 101

    Copyright © H2O

    主站蜘蛛池模板: 成人无码区免费视频观看| 怡红院亚洲怡红院首页| 免费看片免费播放| 99精品在线免费观看| 永久在线观看www免费视频| 99视频在线免费观看| 无码国产精品一区二区免费vr| 亚洲美女免费视频| 狼友av永久网站免费观看| 亚洲人AV永久一区二区三区久久| 亚洲啪啪AV无码片| 国产a v无码专区亚洲av| 国产男女猛烈无遮挡免费网站| 亚洲精品国精品久久99热| 亚洲国产精品免费视频| 亚洲kkk4444在线观看| 特a级免费高清黄色片| 日韩精品免费视频| 天天摸夜夜摸成人免费视频| 久久精品国产亚洲精品| 亚洲精品无码激情AV| 亚洲激情中文字幕| 亚洲av永久中文无码精品| 97超高清在线观看免费视频| 无码国产精品一区二区免费式直播 | 亚洲国产精品自在在线观看| 中文字幕亚洲综合小综合在线| 麻豆安全免费网址入口| 美女免费视频一区二区| 野花香高清视频在线观看免费 | 四虎成人精品永久免费AV| 24小时日本在线www免费的| 4338×亚洲全国最大色成网站| 亚洲国产精品xo在线观看| 青青草97国产精品免费观看| 精品无码国产污污污免费网站| 免费二级毛片免费完整视频| 亚洲国产aⅴ综合网| 亚洲av高清在线观看一区二区| 亚洲男人的天堂在线va拉文| 亚洲午夜久久久精品电影院|