我尝试在本地注册表实例上使用Docker Registry REST API V2。
运行注册表:docker run -d --network host --name registry registry:2 (docs)。
检查注册表的命令:
$ curl https://localhost:5000/v2/_ping
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number我的curl使用的是TLS1.1.1,它应该支持OpenSSL 1.3。但它不起作用:
$ curl -3 https://localhost:5000/v2/_ping
curl: (4) OpenSSL was built without SSLv3 supportCurl和OpenSSL版本:
$curl --version
curl 7.64.0 (x86_64-pc-linux-gnu) libcurl/7.64.0 OpenSSL/1.1.1
Release-Date: 2019-02-06
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL TLS-SRP UnixSockets HTTPS-proxy 操作系统: Linux Mint 19.1
根据guide安装OpenSSL 1.1.1。
OpenSSL 1.1.1是否支持TLS1.3?如何解决此问题?
发布于 2019-03-10 16:58:20
你在localhost:5000上运行的the服务器太旧了,以至于它试图使用SSLv3,而且SSLv3支持已经被默认禁用,因为libcurl 7.39.0从2014年开始,你的curl版本比7.39.0新。
更新你的网络服务器或完全禁用加密,现在使用SSLv3会给人一种错误的安全感。
https://stackoverflow.com/questions/55085550
复制相似问题