Added error handling for certificate and password.