This guide describes how to integrate a personal certificate for signing and encrypting emails in Apple Mail for macOS. To do this, you need a certificate, which must be available as a .p12 file. How do I request a personal certificate?
First you need to import your certificate with your private key into the macOS keychain. To do this, click on the file (PKCS12 format) that contains the key and the certificate.
Select "login" for keychain and click "Add".
When prompted for the certificate password, enter the password and click "OK".
After the installation you will be redirected to the Keychain Access. There you can see the certificate you just installed under "My Certificates".
Now open the "Settings" of Apple Mail.
Click on "Server settings" under "Accounts" and select "Advanced Exchange settings".
Select your certificate under TLS certificate and confirm with "OK".
Please "save" the settings.
When you now send an email, you can choose whether you want to encrypt it, provided the recipient also has a certificate. You can change this by clicking on the lock symbol.