4

質問は次のとおりです。(1) SSL 例外にはいくつの例外理由がありますか? (2) SSL 例外に関する仕様やドキュメントはありますか?

SSL 例外には、SSLException、SSLHandshakeException、SSLKeyException、SSLPeerUnverifiedException、SSLProtocolException など、多くの種類があることは誰もが知っています。そのうちの 1 つについては、多くの例外の理由があります。以下は、インターネットから検索した一部です: (1) SSLException 1) javax.net.ssl.SSLException: 有効な SSL 暗号スイートに対応する証明書またはキーがありません。

2)  javax.net.ssl.SSLException: Not trusted server certificate Caused by:
    java.security.cert.CertificateException:
        java.security.cert.CertPathValidatorException: TrustAnchor for CertPath not found.

3)  javax.net.ssl.SSLException: No available certificate or key corresponds to the SSL cipher suites which are enabled.

4)  javax.net.ssl.SSLException:
    java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException:
        the trustAnchors parameter must be non-empty

5)  javax.net.ssl.SSLException: Invalid padding

(2) SSLHandshakeException 1) javax.net.ssl.SSLHandshakeException: 致命的なアラートを受け取りました: bad_certificate

2)  javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Untrusted Server Certificate Chain

3)  javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

4)  java.net.SocketException: Default SSL context init failed: Keystore was tampered with, or password was incorrect

5)  javax.net.ssl.SSLHandshakeException:
        sun.security.validator.ValidatorException: PKIX path building failed:
            sun.security.provider.certpath.SunCertPathBuilderException:
                unable to find valid certification path to requested target
4

0 に答える 0