mirror of
https://github.com/Icinga/icinga2.git
synced 2026-02-03 20:40:17 -05:00
tests: skip superfluous cert generation in EnsureCertFor()
The certificate generated by `PkiUtility::NewCert()` is self-signed, and so the subsequent `PkiUtility::SignCsr()` call is required. However, `PkiUtility::SignCsr()` doesn't reuse existin cert, instead it'll generate a fresh one on its own. So, skip the first one entirely!
This commit is contained in:
parent
3ca8f0756f
commit
dc8cf202ad
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ struct CertificateFixture : ConfigurationDataDirFixture
|
|||
cert.csrFile = (m_CertsDir / (name + ".csr")).string();
|
||||
|
||||
if (!Utility::PathExists(cert.crtFile)) {
|
||||
PkiUtility::NewCert(name, cert.keyFile, cert.csrFile, cert.crtFile);
|
||||
PkiUtility::NewCert(name, cert.keyFile, cert.csrFile, "");
|
||||
PkiUtility::SignCsr(cert.csrFile, cert.crtFile);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue