Skip to content

Commit 4a978c8

Browse files
authored
Merge pull request #1425 from albertony/cert-gen-fix
Fix issue with generation of new certificate
2 parents 2db65f0 + 20a1bd2 commit 4a978c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/net/SecureUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void generate_pem_self_signed_cert(const std::string& path)
190190

191191
X509_sign(cert, private_key, EVP_sha256());
192192

193-
auto fp = fopen_utf8_path(path.c_str(), "r");
193+
auto fp = fopen_utf8_path(path.c_str(), "w");
194194
if (!fp) {
195195
throw std::runtime_error("Could not open certificate output path");
196196
}

0 commit comments

Comments
 (0)