小编Zak*_*lwe的帖子

LetsEncrypt SSL 错误 - SSL 例程:ssl3_get_record:版本号错误

我设法从 LetsEncrypt 中提取了一个新证书。我的 VirtualHost 配置设置为:

<VirtualHost *:80>
    ServerName example.com
    Redirect 301 / https://example.com/
</VirtualHost>

<VirtualHost *:443>
    Servername example.com
    DocumentRoot /var/www/example.com/wav
    ErrorLog /var/log/apache2/example.com/www/error.log

    SSLEngine On
    SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)

尝试使用 openssl 验证这一点时:

openssl s_client -connect example.com -port 443
Run Code Online (Sandbox Code Playgroud)

我得到以下信息:

CONNECTED(00000003)
140229655213824:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:../ssl/record/ssl3_record.c:252:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 5 bytes and written 202 bytes
Verification: OK
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported …
Run Code Online (Sandbox Code Playgroud)

apache ssl openssl

6
推荐指数
1
解决办法
2万
查看次数

Traefik 和自签名 SSL

从新手到 Traefik 和 Docker。我已经使用以下方法准备了自签名证书:

openssl req -x509 -newkey rsa:4096 -keyout www.example.co.uk.key -out www.example.co.uk.crt-days 365
Run Code Online (Sandbox Code Playgroud)

在我的 traefik.toml 文件中,我有:

[entryPoints]
  [entryPoints.http]
  address = ":80"
  [entryPoints.https]
  address = ":443"
  [entryPoints.https.tls]
    [[entryPoints.https.tls.certificates]]
    certFile = "certs/www.example.co.uk.crt"
    keyFile = "certs/www.example.co.uk.key"
Run Code Online (Sandbox Code Playgroud)

然而这会导致:

traefik          | time="2019-06-17T22:11:17Z" level=debug msg="Serving default cert for request: \"www.example.co.uk\""
traefik          | time="2019-06-17T22:11:17Z" level=debug msg="http: TLS handshake error from 172.20.0.1:57770: tls: no certificates configured"
Run Code Online (Sandbox Code Playgroud)

如果我省略证书定义,以便 traefik.toml 读取为:

[entryPoints]
  [entryPoints.http]
  address = ":80"
  [entryPoints.https]
  address = ":443"
  [entryPoints.https.tls]
  #  [[entryPoints.https.tls.certificates]]
  #  certFile = "certs/www.example.co.uk.crt"
  #  keyFile …
Run Code Online (Sandbox Code Playgroud)

ssl openssl docker traefik

6
推荐指数
1
解决办法
2万
查看次数

标签 统计

openssl ×2

ssl ×2

apache ×1

docker ×1

traefik ×1