Merge pull request #1425 from albertony/cert-gen-fix

Fix issue with generation of new certificate
This commit is contained in:
walker0643 2021-11-12 10:54:54 -05:00 committed by GitHub
commit 4a978c8331
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ void generate_pem_self_signed_cert(const std::string& path)
X509_sign(cert, private_key, EVP_sha256());
auto fp = fopen_utf8_path(path.c_str(), "r");
auto fp = fopen_utf8_path(path.c_str(), "w");
if (!fp) {
throw std::runtime_error("Could not open certificate output path");
}