I need to upload SSL certificates to server from .NET code.
I want to create validation on server side to check if certificate has valid format.
Does anybody know which formats are supported by IIS (.pfx, .cer, .crt etc)?
Also I found two classes to work with certificates X509Certificate
and X509Certificate2
. Which of them should I use?