Skip to content

Commit

Permalink
Merge pull request #1075 from Sean-Der/curve-name
Browse files Browse the repository at this point in the history
Use prime256v1 for EVP_EC_gen instead of P-256
  • Loading branch information
paullouisageneau authored Dec 26, 2023
2 parents 5b1fbd7 + a20cd52 commit 5288eba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/impl/certificate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ Certificate Certificate::Generate(CertificateType type, const string &commonName
case CertificateType::Ecdsa: {
PLOG_VERBOSE << "Generating ECDSA P-256 key pair";
#if OPENSSL_VERSION_NUMBER >= 0x30000000
pkey = shared_ptr<EVP_PKEY>(EVP_EC_gen("P-256"), EVP_PKEY_free);
pkey = shared_ptr<EVP_PKEY>(EVP_EC_gen("prime256v1"), EVP_PKEY_free);
if (!pkey)
throw std::runtime_error("Unable to generate ECDSA P-256 key pair");
#else
Expand Down

0 comments on commit 5288eba

Please sign in to comment.