우분투에서 https에 연결할 수 없습니다 - "알 수 없는 SSL 프로토콜 오류"

우분투에서 https에 연결할 수 없습니다 - "알 수 없는 SSL 프로토콜 오류"

Ubuntu 서버에서 SSL을 통해 특정 서버에 연결할 수 없는 것 같습니다. 로컬로 내 Mac에서는 완벽하게 작동합니다.

서버 주소: powerschool.spokaneschools.org

curl -v https://powerschool.spokaneschools.org산출:

  • URL을 다음으로 재구성:https://powerschool.spokaneschools.org/
  • DNS 캐시에서 호스트 이름을 찾을 수 없습니다.
  • 206.193.1.72를 시도 중...
  • powerschool.spokaneschools.org(206.193.1.72) 포트 443(#0)에 연결됨
  • 인증서 확인 위치를 성공적으로 설정했습니다.
  • CAfile: 없음 CApath: /etc/ssl/certs
  • SSLv3, TLS 핸드셰이크, 클라이언트 안녕하세요(1):
  • powerschool.spokaneschools.org와 관련된 알 수 없는 SSL 프로토콜 오류:443
  • 연결 0 컬 종료: (35) powerschool.spokaneschools.org와 관련된 알 수 없는 SSL 프로토콜 오류:443

openssl s_client -connect powerschool.spokaneschools.org:443산출:

CONNECTED(00000003)
write:errno=104
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 0 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : SSLv3
    Cipher    : 0000
    Session-ID: 
    Session-ID-ctx: 
    Master-Key: 
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    Start Time: 1466726411
    Timeout   : 7200 (sec)
    Verify return code: 0 (ok)
---

다양한 SSL 확인 도구를 사용하여 사이트를 확인해 보았는데 모두 괜찮은 것 같습니다(일부 보안 문제 제외). 해당 도메인 내에서도 다른 서버에 연결하는 데 문제가 없습니다.

OS

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.4 LTS
Release:        14.04
Codename:       trusty

$ curl -V
curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smtp smtps telnet tftp 
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP 

$ openssl version -a
OpenSSL 1.0.1f 6 Jan 2014
built on: Mon May  2 16:53:18 UTC 2016
platform: debian-amd64
options:  bn(64,64) rc4(16x,int) des(idx,cisc,16,int) blowfish(idx) 
compiler: cc -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -DTERMIO -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wa,--noexecstack -Wall -DMD32_REG_T=int -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM
OPENSSLDIR: "/usr/lib/ssl"

답변1

이것은 나에게 효과적이며 귀하의 컬/openssl 버전에서도 작동해야 합니다. errno 104는 연결 재설정을 의미하므로 방화벽과 같은 일부 미들박스가 문제를 일으키는 것으로 가정합니다. 관련된 방화벽이 없는지 확인할 수 있는 다른 네트워크에서 확인하십시오.

관련 정보