Received fatal alert: handshake_failure through SSLHandshakeException

前端 未结 19 2425
暖寄归人
暖寄归人 2020-11-22 01:33

I have a problem with authorized SSL connection. I have created Struts Action that connects to external server with Client Authorized SSL certificate. In my Action I am tryi

19条回答
  •  旧时难觅i
    2020-11-22 02:18

    This can also happend when the client needs to present a certificate. After the server lists the certificate chain, the following can happen:

    3. Certificate Request The server will issue a certificate request from the client. The request will list all of the certificates the server accepts.

    *** CertificateRequest
    Cert Types: RSA
    Cert Authorities:
    
    
    
    
    ... the rest of the request
    *** ServerHelloDone
    

    4. Client Certificate Chain This is the certificate the client is sending to the server.

    *** Certificate chain
    chain [0] = [
    [
      Version: V3
      Subject: EMAILADDRESS=client's email, CN=client, OU=client's ou, O=client's Org, L=client's location, ST=client's state, C=client's Country
      Signature Algorithm: SHA1withRSA, OID = 1.2.840.113549.1.1.5
      ... the rest of the certificate
    *** ClientKeyExchange, RSA PreMasterSecret, TLSv1    
    ... key exchange info 
    

    If there isn't a certificate in the chain and the server requires one, you'll get the handshake error here. A likely cause is the path to your certificate wasn't found.

    5. Certificate Verify The client asks the server to verify the certificate

    *** CertificateVerify
    ... payload of verify check
    

    This step will only happen if you are sending a certificate.

    6. Finished The server will respond with a verify response

    *** Finished
    verify_data:  { 345, ... }
    

提交回复
热议问题