Article ID: 216829 - Last Review: June 23, 2005 - Revision: 3.2 How to Write a Client Authentication Certificate to a File in IIS 4.0This article was previously published under Q216829 We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 6.0 running on Microsoft Windows Server 2003. IIS 6.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site: http://www.microsoft.com/technet/security/prodtech/IIS.mspx
(http://www.microsoft.com/technet/security/prodtech/IIS.mspx)
SUMMARY
Sometimes it may be useful to store a public key certificate for future use. The following ASP code takes the client authentication certificate provided by the client and writes it to a file called c:\Cert.txt. For this to work, you must first configure a virtual directory to use SSL and require a client authentication certificate. You can analyze the certificate using the CERTUTIL tool that ships with the Windows NT Option Pack. For more information on how to do this, please see the following article in the Microsoft Knowledge Base: 216830
(http://support.microsoft.com/kb/216830/EN-US/
)
IIS: How to View the Contents of a Certificate
The following is the ASP code needed for this to work: | Article Translations
|
Back to the top
