This MuleSoft knowledge article explains how to generate a public/private key pair for Anypoint Enterprise Security using the Kleopatra application.
For example, in this scenario, it will be used and tied to the Cryptography Module, which uses public/key pairs in order to encrypt/decrypt or sign/verify messages.
In order to generate PGP keys using Kleopatra, please use the following steps:
1. Open Kleopatra, go to 'File'>>'New Key pair'.
2. Click on 'Create a personal OpenPGP key pair'.
3 Click on Advance Settings, under 'Key Material', select RSA and check '+RSA', making sure 3,072 bits are selected for both.
4. Click OK
5. Add Name and E-mail, in your case add a check to 'Protect the generated key with passphrase'
6. Click 'Create' and add the desired passphrase
7. Click 'Finish'
8. Right-click the added entry and click on 'Export' and save the pub key with the desired name with .gpg file extension(pub key)
9. Right-click the added entry and click on 'Backup Secret Keys ' and save secret key with the desired name with .gpg file extension (secret key), and add a passphrase if you receive a prompt.
10. Right-click the added entry and click on 'Details'>>More Details>>
11. Note the ID value, which has 'Usage' as 'Encrypt' as it will be used in the Crypto Pgp configuration for Anypoint Studio as the following:
-ID (last 8 characters) - will be used as the 'Key id' value
-ID (full 16 characters) - will be used as the 'Fingerprint' value
12. Once noted, go to the sample app>>Global Elements>>Crypto Pgp
13. Add the following:
a. Public keyring: generated .gpg pub key in step 8
b. Private keyring: generated .gpg secret key in step 9
c. Add a new entry in the table using the ID information from step 11 and also add the passphrase used.
Once the configuration is complete, attempt to decrypt a file that has been encrypted with the generated keys.
001121742

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.