Axon Ivy's email encryption utility provides you with a sample implementation for sending encrypted emails from any business process.
This market item:
- gives you a template for sending encrypted emails via a preconfigured form.
- is based on the OpenSSL library, featuring open-source implementations of the SSL and TLS protocols.
In this demo application, you will be able to send an encrypted emails directly from your UI form in any of your business processes.
-
Start the SendEncryptedEmail process.
-
Fill in the email form.
-
Set the public key of the receiver.
-
Send the email.
First you will need to install OpenSSL on windows. You can download the library from here: OpenSSL
All the commands should be run from the command prompt under the installation directory in the BIN folder:
C:\OpenSSL-Win64\bin
First, let’s create a self-sign certificate and a private authority valid for 365 days:
openssl req -x509 -newkey rsa:4096 -keyout encrypted.email.key -out encrypted.email.crt -sha256 -days 365
Fill in all the information in the wizard to create the certificate using the private key password:
Now you have created a self-signed certificate with the private authority, but MS Outlook, Thunderbird, and other email clients use the p12
certificate style. Therefore, let's create this kind of certificate:
openssl pkcs12 -export -inkey encrypted.email.key -in encrypted.email.crt -out encrypted.email.p12
Enter the password you have created for the private key. Now you have all the certificates you will need. To trust those certificates, you will need to install them on your email client.
Installing the certificate for MS Outlook is described here: Installing an s-mime certificate with outlook
-
In MS Outlook, select File from the main menu, then click Options.
-
Select Trust Center at the bottom of the menu on the left side.
-
Click the Trust Center Settings button.
-
Select Email Security from the left-hand menu of the Trust Center window.
-
Click the Import/Export button, under Digital IDs (Certificates).
-
Make sure Import existing Digital ID from a file is checked, then click Browse...
-
Navigate to the PKCS#12 file, then click Open. The filename extension should be .p12
-
Enter the password you used when downloading the PKCS#12 file, then click OK.
-
Open Account Settings.
-
Select End-To-End Encryption.
-
Click on Manage S/MIME Certificates.
-
Click on Import....
-
Navigate to the PKCS#12 file, then click Open. The filename extension should be
.p12
. -
Enter the password you used when downloading the
PKCS#12
file, then click OK.