Using CACert certificates with KMail on Debian
Monday, February 27, 2006 at 02:27 PM
Since I had some difficulties getting my CACert certificate integrated with KMail on Debian unstable, I wanted to share the steps I took in order to get email encryption and singing up and running. Basically you need to run gpg-agent, create the certificate with Firefox, export it to KMail and congfigure KMail to use it for encryption and signing.
- Setup gpg-agent
For some reason gpg-agent is not enabled by default in Debian. Add this to your
~/.xsessionto run gpg-agent when you log in:eval "$(gpg-agent --daemon --allow-mark-trusted)"
- Log out and back in
- Check if gpg-agent is running
Runset | grep GPG_AGENT_INFO
The output should like similar to this:GPG_AGENT_INFO=/tmp/gpg-e6JFKt/S.gpg-agent:20501:1
- Import the root certificate into kleopatra
- Download and save the CACert root certificate
- Run
kleopatra File -> Import Certificates- Select the saved file
- Create and import your personal into Firefox
I have not been able to create a personal certificate using konqueror so far. CACert always complains about an invalid certificate request.
- Run
firefox - Import the CACert root certificate (Documentation).
- Create and import your personal certificate from CACert (Documentation).
- Run
- Export your personal certificate from Firefox
- Import your personal certificate into Konqueror and Kleopatra
- Check if the certificate was imported
Run gpgsm -k to list the imported certificates. The CACert root certificate and your personal certiciate should be displayed:
Serial number: 00 Issuer: /CN=CA Cert Signing Authority
/OU=http:\x2f\x2fwww.cacert.org/O=Root CA
/EMail=support@cacert.org Subject: /CN=CA Cert Signing
Authority/OU=http:\x2f\x2fwww.cacert.org/O=Root
CA/EMail=support@cacert.org validity: 2003-03-30 12:29:49
through 2033-03-29 12:29:49 key type: 4096 bit RSA chain
length: unlimited
fingerprint: 13:5C:EC:36:F4:9C:B8:E9:3B:1A:B2:70:CD:80:88:46:76:CE:8F:33
[...]Use gpgsm -K to display your personal certiciate only.
- Setup kmail to use your personal certificate
- That's it
Now you should be able to send and receive signed and encrypted emails with KMail.
|





