2016-12-13 53 views
0

我有一個問題,而試圖用我的SSL證書在Apache 2.4 鉻繼續與迴應:ERR_CONNECTION_REFUSED 如果我在命令行中嘗試:與SLL apache2.4 ERR_CONNECTION_REFUSED

openssl s_client -connect localhost:443 -state -debug 
    connect: Connection refused 
    connect:errno=111 

我也嘗試檢查有什麼錯443端口的防火牆:

netstat -pant | grep httpd 

不回答的答案anithing

ufw status 
Status: active 

To       Action  From 
--       ------  ---- 
443/tcp     ALLOW  Anywhere 
22       ALLOW  Anywhere 
443      ALLOW  Anywhere 
80       ALLOW  Anywhere 
443/tcp (v6)    ALLOW  Anywhere (v6) 
22 (v6)     ALLOW  Anywhere (v6) 
443 (v6)     ALLOW  Anywhere (v6) 
80 (v6)     ALLOW  Anywhere (v6) 

NMAP給這個反饋

nmap localhost 

Starting Nmap 7.01 (https://nmap.org) at 2016-12-13 21:52 CET 
Nmap scan report for localhost (127.0.0.1) 
Host is up (0.0000050s latency). 
Not shown: 997 closed ports 
PORT  STATE SERVICE 
22/tcp open ssh 
53/tcp open domain 
3306/tcp open mysql 

Nmap done: 1 IP address (1 host up) scanned in 1.58 seconds 

,如果這能幫助你,我生成我與使用-w根目錄選項此另一個咱們加密證書,是不是OK了Apache

我已經啓用aendmod SSL a2enmod SSL 爲SSL考慮的依賴SetEnvIf之後: 模塊SetEnvIf之後已啓用 考慮SSL依賴默: 模塊MIME已啓用 考慮依賴socache_shmcb對於SSL: 模塊socache_shmcb已經啓用 模塊SSL已經啓用

我的虛擬主機:

<VirtualHost *:443> 
    ServerAdmin [email protected] 
    ServerName domain.net 
    ServerAlias www.domain.net 

    SSLCertificateFile /etc/letsencrypt/live/domain.net/fullchain.pem 
    SSLCertificateFile /etc/letsencrypt/live/domain.net/chain.pem 
    SSLCertificateKeyFile /etc/letsencrypt/live/domain.net/privkey.pem 
    ... 

我ports.conf

Listen 80 

<IfModule ssl_module> 
    Listen 443 
</IfModule> 

<IfModule mod_gnutls.c> 
    Listen 443 
</IfModule> 

回答