.NET Programs Communicating with HTTPS Servers
This chapter provides tutorial notes and example codes on writing .NET programs communicating with HTTPS servers. Topics include using .NET Framework 4.0 System.Net.Request class to connect to HTTPS servers; testing how .NET programs uses root CA certificates from the trusted certificate store; catching .NET execution exceptions to report server certificate validation errors.
These sections are omitted from this Web preview version. To view the full content,
see information on how to obtain the full version this book.
System.Net.Request Class for HTTPS
Test with CA Certificate Disabled
Test with Second CA Certificate Disabled
.NET Program Failed with CA Certificates Deleted
.NET Reporting Certificate Validation Failed
- .NET Framework 4.0 has built-in support for HTTPS communication.
- The System.Net.Request class can be used to connect both HTTP and HTTPS servers.
- .NET verifies HTTPS server certificates by default.
- .NET uses the trusted certificate store maintained by the Windows system to get
root CA certificates.
- .NET ignores "Disabled" settings on root CA certificates.
Table of Contents
About This Book
Introduction of PKI (Public Key Infrastructure)
Introduction of HTTPS (Hypertext Transfer Protocol Secure)
Using HTTPS with Google Chrome
Using HTTPS with Mozilla Firefox
HTTPS with Microsoft Edge
Using HTTPS with Apple Safari
HTTPS with IE (Internet Explorer)
Android and Server Certificate
iPhone and Server Certificate
Windows Certificate Stores and Console
RDP (Remote Desktop Protocol) and Server Certificate
macOS Certificate Stores and Keychain Access
Perl Scripts Communicating with HTTPS Servers
PHP Scripts Communicating with HTTPS Servers
Java Programs Communicating with HTTPS Servers
►.NET Programs Communicating with HTTPS Servers
CAcert.org - Root CA Offering Free Certificates
PKI CA Administration - Issuing Certificates
Comodo Free Personal Certificate
Digital Signature - Microsoft Word
Digital Signature - OpenOffice.org 3
S/MIME and Email Security
PKI (Public Key Infrastructure) Terminology
Full Version in PDF/EPUB