As CryptoContext Same as OpenContext , but allows you to specify a Cryptographic Service Provider explicitly rather than relying on the default provider. Manage Cryptographic Providers and Contexts . As CryptoStore Opens a certificate store. Name specifies the store name. Manage Certificates and Certificate Stores .
Path specifies the location of the file.
Password specifies the password used to encrypt private key information in the file. A certificate obtained this way can be used to generate digital signatures and send signed mail. This method uses an undocumented CryptoAPI function PFXImportCertStore from the library Crypt32.dll. For this method to work under IIS 5.0, you must call CM.RevertToSelf prior to calling OpenStoreFromPFX, and your virtual directory's Application Protection option must be set to Low. Otherwise you will receive the error Persits.