Remove bad CertificateIdentityVerifier test.
Summary: The certificate identity verifier is meant to verify the end entity certificate in a certificate chain. It assumes that OpenSSL has already validated that the end entity has a valid signature by an issuer. The test that I am removing is asserting buggy behavior in OpenSSL prior to version OpenSSL 1.1.1i. The test scenario sets up a client *without a certificate store* connecting to a server. When the client attempts to validate this certificate chain, it will receive two errors: 1. Unable to find issuer locally. Because the test server's certificate is signed by an issuer that is not present in the client's (empty) certificate store, while trying to determine the issuer during chain building, OpenSSL fails as expected. Because the test scenario *intentionally* overrides this error by returning `true` in `handshakeVer`, OpenSSL continues its certificate validation procedure. 2. Unable to verify leaf signature. In order to validate the signature for a certificate, one needs to know the public key of the issuer. However, the client does not know about the issuer. Control flow would normally not reach here, but the client chose to continue the validation process without knowing the issuer in step 1. The test scenario forcefully returns "true" here, telling OpenSSL to continue. Prior to OpenSSL 1.1.1i (specifically commit [2e06150e](https://github.com/openssl/openssl/commit/2e06150e3928daa06d5ff70c32bffad8088ebe58)), OpenSSL would stop the verification procedure here. It would never signal the completion of the verification procedure (by sending `preverify_ok=1`). The test was asserting that this was expected. This meant that the test was asserting behavior on an incorrect implementation. With OpenSSL 1.1.1i, if all previous `handshakeVer` callbacks say that the certificate is fine, then OpenSSL will perform the final call with `preverify_ok=1`, which will cause the CertificateIdentityVerifier to be invoked. Differential Revision: D25775428 fbshipit-source-id: 8a5f388ce2eb9a8d5667fd4e840b6b223e618d43
Showing
Please register or sign in to comment