Browse Source

Merge pull request #1075 from Sean-Der/curve-name

Use prime256v1 for EVP_EC_gen instead of P-256
Paul-Louis Ageneau 1 year ago
parent
commit
5288ebac14
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/impl/certificate.cpp

+ 1 - 1
src/impl/certificate.cpp

@@ -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