Before you use IXMLDigitalSignature
or IXMLDigitalSignatureEx
interface to sign an XML document, you must have a digital certificate installed on your machine. To obtain a digital certificate, you must request one from a certificate authority (CA). You can either access a CA or set up your own. For instructions on setting up a private CA, see Setting Up a Certificate Authority.
The following steps describe how to request a certificate from a CA running Microsoft Certificate Services, supported on a Windows server machine.
To request a certificate from a certificate authority
Note All the sample files in the Digital Signatures Reference section use "MyRSAFullKeys" as the container name. Therefore, it is recommended that you use this name for testing purposes. If you choose a different name, you will need to supply it to some key handling methods, such as createKeyFromCSP
, for the samples to run.
Now your request is pending. Depending on the CA you use, you might need to check the status of the request periodically. If you created your own CA, you will have to issue a certificate for the pending request.
After the certificate has been issued, you can install the certificate.