|
@@ -359,6 +359,7 @@ ssize_t TLSv12::verify_rsa_server_key_exchange(ReadonlyBytes server_key_info_buf
|
|
dbgln("verify_rsa_server_key_exchange failed: Attempting to verify signature without certificates");
|
|
dbgln("verify_rsa_server_key_exchange failed: Attempting to verify signature without certificates");
|
|
return (i8)Error::NotSafe;
|
|
return (i8)Error::NotSafe;
|
|
}
|
|
}
|
|
|
|
+ // RFC5246 section 7.4.2: The sender's certificate MUST come first in the list.
|
|
auto certificate_public_key = m_context.certificates.first().public_key;
|
|
auto certificate_public_key = m_context.certificates.first().public_key;
|
|
Crypto::PK::RSAPrivateKey dummy_private_key;
|
|
Crypto::PK::RSAPrivateKey dummy_private_key;
|
|
auto rsa = Crypto::PK::RSA(certificate_public_key, dummy_private_key);
|
|
auto rsa = Crypto::PK::RSA(certificate_public_key, dummy_private_key);
|