Before importing a certificate, free any previous one. Bug 1648