D
Dima Maltsev
Hello Group,
I'd like to re-submit the following post in order to get
Microsoft guys opinion on the questions below.
Thank you
-------
I am using the HttpWebRequest object to send http POST
requests over https protocol.
The documentation for this class states that it supports
most of the HTTP 1.1 protocol features including server
certificate validation (see this link
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/cpguide/html/cpconhttp.asp). However,
it neither explains what validation is supported, nor how
to use this feature.
Here are my questions:
1. What server certificate validation is supported?
2. How do I enable validation (if it's not enabled by
default)?
3. With WinHTTPRequest COM object it was possible to
disable server certificate validation using the
WINHTTP_OPTION_SECURITY_FLAGS flag
(http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/winhttp/http/option_flags.asp). I will
need the same functionality in HttpWebRequest object as we
don't have valid certificates on our Test environments.
How can I do this?
4. Finally, I have to make sure that at least the
following validation is performed in production mode:
Unknown certification authority (CA) or untrusted root
Invalid common name (CN)
Invalid date or certificate expired
Is it all supported by default or do I have to enable it?
Thank you,
Dima Maltsev
I'd like to re-submit the following post in order to get
Microsoft guys opinion on the questions below.
Thank you
-------
I am using the HttpWebRequest object to send http POST
requests over https protocol.
The documentation for this class states that it supports
most of the HTTP 1.1 protocol features including server
certificate validation (see this link
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/cpguide/html/cpconhttp.asp). However,
it neither explains what validation is supported, nor how
to use this feature.
Here are my questions:
1. What server certificate validation is supported?
2. How do I enable validation (if it's not enabled by
default)?
3. With WinHTTPRequest COM object it was possible to
disable server certificate validation using the
WINHTTP_OPTION_SECURITY_FLAGS flag
(http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/winhttp/http/option_flags.asp). I will
need the same functionality in HttpWebRequest object as we
don't have valid certificates on our Test environments.
How can I do this?
4. Finally, I have to make sure that at least the
following validation is performed in production mode:
Unknown certification authority (CA) or untrusted root
Invalid common name (CN)
Invalid date or certificate expired
Is it all supported by default or do I have to enable it?
Thank you,
Dima Maltsev