# Installing new Certificates

## Motivation

I recieve every 6 months an email from cacert that is telling me, that my certificates are about to expire. The ask me to renew them and I like to do just that. But usually I have forgotten what steps I need to do. Typically I need to generate a certificate into a different format then my browser presents me with. So therefore I'd like to help myselfe with this post to remember what I need to do in a couple of months.

## Renew Certificate

Goto the CAcert page and login. Then navigate to Client Certificates and click on View. You can see your certificates here and mark alle the ones you would like to renew. Click on Renew to do just that.

## Installing the Certificates

Once the renewing is finished you are presented a page containing something similar to this

Now renewing the following certificates:
Certificate for 'frosch03@frosch03.de' has been renewed.


With a click on Click here you will install the certificate into your browser. If you want to you can also download the certificate within various formats.

You now are able to download the certificate from your browser. For firefox goto about:preferences#advanced, select the Certificates tab and click onto View Certificates at the bottom. Within that dialog you are able to select the certificate you want to download, and click on Backup....
Type in a filename that ends with .p12 to indicated that the data are within PKCS12 format.
openssl pkcs12 -in <infile.p12> -clcerts > <outfile.pem>