make sure validation pem is removed after ks