curl: Unknown SSL protocol error in connection

Ich versuche, eine Verbindung von einem server (A) in AWS auf einen anderen server (B) in AWS mit Tomcat 7 + SSL.

Server Ein:

  • Ubuntu 14.04
  • OpenSSL 1.0.1 f

Server B:

  • Ubuntu 13.04
  • Tomcat 7
  • OpenSSL 1.0.1 c
  • SSL-Zertifikat

Ich versuche, den folgenden Befehl im server Ein:

curl https://Server.B -v

Und ich bekomme die folgende exception:

* Connection #0 to host test.salespredict.com left intact
yakirm@ip-10-214-10-178:~$ curl https://Server.B.com -v
* Rebuilt URL to: https://Server.B.com/
* Hostname was NOT found in DNS cache
*   Trying 54.245.81.*...
* Connected to Server.B.com (54.245.81.*) port 443 (#0)
* successfully set certificate verify locations:
*   CAfile: none
  CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* Unknown SSL protocol error in connection to Server.B.com:443 
* Closing connection 0
curl: (35) Unknown SSL protocol error in connection to Server.B.com:443 

Ich versucht, zu überprüfen, mit OpenSSL

openssl s_client -connect Server.B.Address:443

Bekomme ich das folgende Ergebnis:

CONNECTED(00000003)
140284858304160:error:140790E5:SSL routines:SSL23_WRITE:ssl handshake failure:s23_lib.c:184:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 307 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
---

Wenn ich versuche eine Verbindung von meinem eigenen computer aus (OS X Mavericks), den curl Erfolg, aber die openssl-Befehl zurück das gleiche.

BTW

Wenn ich mich versuche:

curl https://Server.B -v -ssl3

Arbeit vom Server Ein, aber ich will nicht angeben, das SSL-Protokoll.

Bearbeiten

Server B - Tomcat-Konfiguration:

<Connector SSLEnabled="true" acceptCount="100" clientAuth="false" disableUploadTimeout="true" 
                   enableLookups="true" maxThreads="200" port="443" keystoreFile="/var/lib/tomcat7/conf/Path/Path_keystore" keystorePass="******" protocol="org.apache.coyote.http11.Http11NioProtocol" scheme="https" 
                   secure="true" sslProtocol="TLS" />
Nur beachten Sie, dass "-ssl3" ist nicht gleich "--sslv3" aber das gleiche wie die -s-s -l -3 ...

InformationsquelleAutor Yakiros | 2014-10-21

Schreibe einen Kommentar