encrypt certificate for testing