Avoid X509Certificate in ImportClientCertAndKeyFromFile |
|
Issue descriptionImportClientCertAndKeyFromFile is used to import a key+cert from files into a NSS database. Two tasks resulting from discussion on CL:823974 - (1) Find a better name, to make it obvious that it's importing into a NSS database. (2) Make it work with certificates which have invalid characters in PrintableString DER fields. More generally, make it not use X509Certificate. Then, we can switch ClientCertResolverTest.MatchSubjectOrgOnBadPrintableStringCert (client_cert_resolver_unittest.cc) and ClientCertStoreNSSTest.SubjectPrintableStringContainingUTF8 (client_cert_store_nss_unittest.cc) to use this function.
,
Dec 14 2017
Yeah, my thought was that it should return ScopedCERTCertificate. In cases that actually use the X509Certificate, having the test call CreateX509CertificateFromCERTCertificate seems right. (Or if it makes sense depending on what the test is doing, it could just do the equivalent thing with NSS functions.) |
|
►
Sign in to add a comment |
|
Comment 1 by pmarko@chromium.org
, Dec 14 2017