XML encryption wizard

Overview

The following filters are involved in encrypting a message using XML encryption:

Filter Role Topic
Find Certificate Specifies the certificate that contains the public key to use in the encryption. The data is encrypted such that it can only be decrypted with the corresponding private key. Find certificate
XML-Encryption Settings Specifies the recipient of the encrypted data, what data to encrypt, what algorithms to use, and other such options that affect the way the data is encrypted. XML encryption settings
XML-Encryption Performs the actual encryption using the certificate selected in the Find Certificate filter, and the options set in the XML-Encryption Settings filter. XML encryption


While these filters can be configured independently of each other, it makes sense to configure them all at the same time because they must play a role in the policy that XML-Encrypts messages. You can do this using the XML Encryption Wizard. The wizard is available by right-clicking the name of the policy in the tree view of the Policy Studio, and selecting the XML Encryption Settings menu option. The next section describes how to configure the settings on this dialog.

Configuration

The first step in configuring the XML Encryption Wizard is to select the certificate that contains the public key to use to encrypt the data. When the data has been encrypted with this public key, it can only be decrypted using the corresponding private key. Select the relevant certificate from the list of Certificates in the Trusted Certificate Store.

When the wizard is completed, the information configured on this screen results in the auto-generation of a Find Certificate filter. This filter is automatically configured to use the selected certificate from the Certificate Store. For more details, see the Find certificate tutorial.

After clicking the Next button on the first screen of the wizard, the configuration options for the XML-Encryption Settings filter are displayed. For more details, see the XML encryption settings topic.

When you have completed all the steps in the wizard, a policy is created that comprises a Find Certificate, XML-Encryption Settings, and XML-Encryption filter. You can insert other filters into this policy as required, however, the order of the encryption filters must be maintained as follows:

  1. Find Certificate

  2. XML-Encryption Settings

  3. XML-Encryption