@@ -95,19 +95,19 @@ void RequiresCertificate::AddCaFixture(const String& caFixtureName)
9595 m_CaFixtures.emplace_back (caFixtureName);
9696}
9797
98- void RequiresCertificate::AddCertFixture (const String& cn , const String& caFixture, const String& certFixture)
98+ void RequiresCertificate::AddCertFixture (const String& name , const String& caFixture, const String& certFixture)
9999{
100100 auto & mts = boost::unit_test::framework::master_test_suite ();
101101 boost::unit_test::decorator::base_ptr certLabel{new boost::unit_test::label{" cert" }};
102102
103103 auto * setup = boost::unit_test::make_test_case (
104- [cn ]() {
104+ [name ]() {
105105 CertificateFixture certFixture;
106106 auto persistentCertsPath = CertificateFixture::m_PersistentCertsDir / " certs" ;
107- auto keyFile = persistentCertsPath / (cn .GetData () + " .key" );
108- auto csrFile = persistentCertsPath / (cn .GetData () + " .csr" );
109- auto crtFile = persistentCertsPath / (cn .GetData () + " .crt" );
110- PkiUtility::NewCert (cn , keyFile.string (), csrFile.string (), " " );
107+ auto keyFile = persistentCertsPath / (name .GetData () + " .key" );
108+ auto csrFile = persistentCertsPath / (name .GetData () + " .csr" );
109+ auto crtFile = persistentCertsPath / (name .GetData () + " .crt" );
110+ PkiUtility::NewCert (" localhost " , keyFile.string (), csrFile.string (), " " );
111111 PkiUtility::SignCsr (csrFile.string (), crtFile.string ());
112112 },
113113 certFixture.GetData () + " _setup" ,
0 commit comments