Implement setting the private key and certificate.