PKI cleanup