A security scan result prior to the deployment of a web application on Windows Server 2008 R2 has raised the below message :
Weak SSL Cipher Suites are Supported
Reconfigure the server to avoid the use of weak cipher suites. The configuration changes are server-specific.
SSLCipherSuite HIGH:MEDIUM:!MD5!EXP:!NULL:!LOW:!ADH
For Microsoft Windows Vista, Microsoft Windows 7, and Microsoft Windows Server 2008 remove the cipher suites that were identified as weak from the Supported Cipher Suite list by following these instructions:
http://msdn.microsoft.com/en-us/library/windows/desktop/bb870930(v=vs.85).aspx
I've tried understanding the MSDN information but I'm totally lost in there.
First of all, I do not understand which is the cipher suite that should be removed or disabled.
Then how am I suppose to run the code given an example to remove a cipher suite?
#include <stdio.h>
#include <windows.h>
#include <bcrypt.h>
void main()
{
SECURITY_STATUS Status = ERROR_SUCCESS;
LPWSTR wszCipher = (L"TLS_RSA_WITH_RC4_128_SHA");
Status = BCryptRemoveContextFunction(
CRYPT_LOCAL,
L"SSL",
NCRYPT_SCHANNEL_INTERFACE,
wszCipher);
}