diff --git a/erizo/src/erizo/dtls/DtlsClient.cpp b/erizo/src/erizo/dtls/DtlsClient.cpp index e72df66e47..a2ff18f5cc 100644 --- a/erizo/src/erizo/dtls/DtlsClient.cpp +++ b/erizo/src/erizo/dtls/DtlsClient.cpp @@ -217,7 +217,7 @@ int createCert(const std::string& pAor, int expireDays, int keyLen, X509*& outCe ELOG_DEBUG("Creating Dtls factory, Openssl v %s", OPENSSL_VERSION_TEXT); - mContext = SSL_CTX_new(DTLSv1_2_method()); + mContext = SSL_CTX_new(DTLS_method()); assert(mContext); int r = SSL_CTX_use_certificate(mContext, mCert);