# XML Encryption Wizard

## Contents
Overview Configuration

## Overview
There are several filters involved in encrypting a message using XML Encryption. These filters are as follows:
Filter | Role | Help Page
Find Certificate | Specify the certificate that contains the public key to use in the encryption. The data will be encrypted such that it can only be decrypted with the corresponding private key. | Find Certificate
XML Encryption Settings | Specify the recipient of the encrypted data, what data to encrypt, what algorithms to use, and other such options that will 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 since they will have to play a role in the circuit that will XML-Encrypt messages. This can be done using the XML Encryption Wizard. The wizard is available by right-clicking on 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. Once the data has been encrypted with this public key it will only be able to 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 will result in the auto-generation of a Find Certificate filter. This filter will be automatically configured to use the selected certificate from the Trusted Certificate Store. Take a look at the Find Certificate help page for more information on this filter. 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 information on configuring this filter, please refer to the XML Encryption Settings help page. Having completed all the steps in the wizard a policy will be created that comprises a Find Certificate, XML Encryption Settings, and XML Encryption filter. It is possible to insert other filters into this policy as required, however the order of the encryption filters must be maintained as follows: Find Certificate XML Encryption Settings XML Encryption