You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a24bf23
Browse filesBrowse the repository at this point in the historyBrowse files
test: Cover weak EC and unsupported-algorithm paths in PemSslContext
Reorders the strength check before the signature check so a sub-spec
EC key fails fast on bit count (192 < 256) instead of tripping the
matching-signature probe. Adds P-192 EC and DSA fixtures, plus tests
covering the weak EC throw, the "Unsupported TLS private key
algorithm" branch (DSA key with RSA cert), and the "Unsupported TLS
public key algorithm" branch (DSA cert with RSA key). Simplifies the
algorithm switch in verifyKeyMatchesCert now that decodePrivateKey
guarantees RSA or EC keys.
Lifts PemSslContext line coverage from ~77% to 86%. Remaining
uncovered lines are defensive GeneralSecurityException / IOException
catches around JDK crypto APIs that do not throw for valid inputs.
0 commit comments