Skip to content

Commit

Permalink
Update x509 cert version to 3 (lynckia#1610)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcague authored Jul 14, 2020
1 parent afcec80 commit 6c19bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erizo/src/erizo/dtls/DtlsClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ int createCert(const std::string& pAor, int expireDays, int keyLen, X509*& outCe
X509_EXTENSION* ext = X509_EXTENSION_new();

// set version to X509v3 (starts from 0)
// X509_set_version(cert, 0L);
X509_set_version(cert, 2L);
std::string thread_id = boost::lexical_cast<std::string>(boost::this_thread::get_id());
unsigned int thread_number = 0;
sscanf(thread_id.c_str(), "%x", &thread_number);
Expand Down

0 comments on commit 6c19bcd

Please sign in to comment.