Signer.Load method

[The Load method is available for use in the operating systems specified in the Requirements section. Instead, use the CmsSigner Class in the System.Security.Cryptography.Pkcs namespace.]

The Load method loads a signing certificate from a specified .pfx file.

Syntax

Signer.Load( _
  ByVal FileName, _
  [ ByVal Password ] _
)

Parameters

FileName

Name of the .pfx file that contains the signing certificate.

Password [optional]

String containing the plaintext password used to open the file. Up to 32 Unicode characters, including a terminating null character, can be used for the password. The default value is an empty string (""). For information about protecting the password, see Handling Passwords.

Return value

This method does not return a value.

Remarks

This method loads the first certificate in the .pfx file that has a private key associated with it.

This method raises CAPICOM_E_NOT_ALLOWED when it is scripted from a web-based application.

Requirements

Requirement Value
Redistributable
CAPICOM 2.0 or later on Windows Server 2003 and Windows XP
DLL
Capicom.dll

See also

Signer