S/MIME Email Encryption in LegalServer

Purpose: Enable LegalServer to send encrypted S/MIME email messages to end recipients. S/MIME is a standard for public key encryption that is supported by most major email systems, including Gmail and Microsoft Office.

Status: This is still in beta. Please email support@legalserver.org if you are interested in being part of the beta testing.

Cost: TBD


The setup generally consists of taking a S/MIME certificate that has been uploaded to the recipient's email and adding the Public Key for that certificate to LegalServer. Then when emails are sent to that email address, the Public Key is used to encrypt the email. If the end user already has an S/MIME certificate, skip to the step to Add Certificate to LegalServer.

Getting an S/MIME Certificate

You will need to get a S/MIME certificate from a certificate provider. There are a wide variety of certificate providers who offer S/MIME certificates, most of them are not free. Getting a certificate requires you to verify your email and identity in some fashion.

Convert Your Key to PEM Format

If you received your key as a .ppk or pfx file, you will need to convert it to .pem to use it with LegalServer. This will extract the Public Key from the Certificate. 

If you have OpenSSL, you can run the following command:

openssl pkcs12 -in PKCS12_Credential_username@email.pfx -clcerts -nokeys -out legalserver-username@email-smime.pem

Where username@email is the email address you used in generating the certificate. OpenSSL is available for Linux natively or for Windows via Shining Light Productions. You will be asked for a password and use the password you got when the certificate was generated.

Add Certificate to LegalServer

Open the new .pem file with a text editor like Notepad. You will just see the Public Key from the certificate. This needs to get added to LegalServer for LegalServer to know it should encrypt an email.

While including the BEGIN CERTIFICATE and END CERTIFICATE lines, copy the certificate code from notepad into LegalServer at https://YOURSITEHERE.LegalServer.org/mail/certificate. 

Add Certificate to Your Email Provider

The final step is to ensure that the end user has S/MIME configured in their email provider. Google Workspaces has a help page available. Office 365 has one as well here. This is not available from all email providers.

Once S/MIME is enabled, via the help documentation above, you'll have to upload the generated certificate to make use of it. In Gmail, those steps look like this:

Click the Settings Cog and then click the link for "All Settings". 

Under the "Send Mail As" section, click "Edit info". You"ll get a popup with details about enabling "Enhanced encryption (S/MIME)". Below that is a link to upload your certificate. Select the original .pfx file that was created. This will then ask you for your password, use the same password you received when the certificate was created. After you get confirmation that it uploaded properly, be sure to say "Use this certificate" to enable the encryption.


Emails sent via the Case Note block to the recipient whose public key was added will be encrypted using S/MIME. The message will come through as a smime.p7m attachment to the email. That will then need to be decrypted locally through a third party tool if the email address doesn't support decryption natively. 

A list of certificates loaded into LegalServer can be found at https://YOURSITEHERE.legalserver.org/mail/list_certificate.


Workflows will not send to an email address that is currently or has previously been set up for Email Encryption.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us