If you have only one email that needs encrypt and sign, do the steps below.
I. Create a certificate authority with exchange type. Sample:
makecert -r -pe -n "CN=zbtest" -a md5 -sky exchange -cy authority -sp "Microsoft Strong Cryptographic Provider" -b 01/01/2011 -e 01/01/2100 -len 1024 -sv zbtest.pvk zbtest.cer
II. Create a pfx file for the certificate. Sample:
cert2spc zbtest.cer zbtest.spc
pvk2pfx -pvk zbtest.pvk -spc zbtest.spc -pfx zbtest.pfx
III. Import certificate authority to thunderbird.
- In Thunderbird, go to "Tools -> Options... -> Advanced -> Certificates -> Manage Certificates...".
- Go to the "Authorities" tab.
- Click on "Import".
- Select the "zbtest.cer" file.
- It will ask you for what purposes you want to trust the certificate. Select "Trust this CA to identify email users."
- Click "OK" to complete the import.
IV. Import personal certificate to thunderbird.
- In Thunderbird, go to "Tools -> Options... -> Advanced -> Certificates -> Manage Certificates...".
- Go to the "Your Certificates" tab.
- Click on "Import".
- Select the "zbtest.pfx" file.
- It will ask you for the master password for the software security device. Enter your master password and click "OK".
- Next, it will ask you for the password protecting your personal certificate. If your pfx file has a password, enter it here, otherwise leave this field empty. Then click "OK".
If you have multiple emails that needs encrypt and sign, do the steps below.
I. Create a certificate authority. Sample:
makecert -r -pe -n "CN=zbtest_ca" -a md5 -sky signature -cy authority -sp "Microsoft Strong Cryptographic Provider" -b 01/01/2011 -e 01/01/2100 -len 1024 -sv zbtestca.pvk zbtestca.cer
II. Import certificate authority to thunderbird.
- In Thunderbird, go to "Tools -> Options... -> Advanced -> Certificates -> Manage Certificates...".
- Go to the "Authorities" tab.
- Click on "Import".
- Select the "zbtestca.cer" file.
- It will ask you for what purposes you want to trust the certificate. Select "Trust this CA to identify email users."
- Click "OK" to complete the import.
III. Create a personal certificate for email. Sample:
makecert -pe -n "CN=zbtest_mail_aaa;E=zbtest@aaa.com" -a md5 -sky exchange -ic zbtestca.cer -iv zbtestca.pvk -sp "Microsoft Strong Cryptographic Provider" -b 01/01/2011 -e 01/01/2100 -len 1024 -sv zbtestmail_aaa.pvk zbtestmail_aaa.cer
IV. Create a pfx file for personal certificate. Sample:
cert2spc zbtestmail_aaa.cer zbtestmail_aaa.spc
pvk2pfx -pvk zbtestmail_aaa.pvk -spc zbtestmail_aaa.spc -pfx zbtestmail_aaa.pfx
V. Import personal certificate to thunderbird.
- In Thunderbird, go to "Tools -> Options... -> Advanced -> Certificates -> Manage Certificates...".
- Go to the "Your Certificates" tab.
- Click on "Import".
- Select the "zbtestmail_aaa.pfx" file.
- It will ask you for the master password for the software security device. Enter your master password and click "OK".
- Next, it will ask you for the password protecting your personal certificate. If your pfx file has a password, enter it here, otherwise leave this field empty. Then click "OK".
VI. For another email loop step III to step V.
Note: The pvk2pfx command will pop up an export wizard if -pfx option is not given.