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

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

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

    Configuring Wildcard AlphaSSL from Centrio Host

    Posted on 2013-09-11 13:05 H2O 閱讀(330) 評論(0)  編輯  收藏

    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


    只有注冊用戶登錄后才能發(fā)表評論。


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

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

    Copyright © H2O

    主站蜘蛛池模板: 国产午夜精品久久久久免费视| 久久亚洲精品高潮综合色a片| 亚洲一区二区三区久久| 亚洲熟妇av午夜无码不卡| 污污视频免费观看网站| 中文字幕无码免费久久| 曰曰鲁夜夜免费播放视频| 午夜成人免费视频| 久久久久亚洲精品无码网址 | 18禁止观看免费私人影院| 免费看AV毛片一区二区三区| 久久精品国产亚洲AV不卡| 亚洲色图黄色小说| 亚洲av纯肉无码精品动漫| 91成人免费福利网站在线| 色se01短视频永久免费| 亚洲AV无码乱码在线观看性色扶 | 亚洲精品第一国产综合亚AV| 久久国产福利免费| 免费观看AV片在线播放| 亚洲A丁香五香天堂网| 99ri精品国产亚洲| 国产精品亚洲小说专区| 高清一区二区三区免费视频| 成全视频免费高清| 九月丁香婷婷亚洲综合色| 亚洲中文字幕无码av永久| 在线观看免费无码视频| 毛片免费视频在线观看| 亚洲精品V欧洲精品V日韩精品| 亚洲中文字幕乱码熟女在线| 免费观看男人吊女人视频| 日韩午夜免费视频| 久久亚洲熟女cc98cm| 视频免费1区二区三区| 国产99视频精品免费观看7| 亚洲一区二区三区AV无码| 亚洲乱人伦中文字幕无码| 亚洲成人免费在线| 亚洲精品成人区在线观看| 亚洲综合无码无在线观看|