CESNET / glite-lb

gLite Logging and Bookkeeping.
3 stars 2 forks source link

Error message when using certificate with passphrase in gsplugin #32

Open sustr4 opened 9 years ago

sustr4 commented 9 years ago

Original submission by Alvise Dorigo:

when I try to invoke glite_gsplugin_set_credential using a key that contains a passphrase, that function fails and I can retrieve this error message:

failed to load GSI credentials: GSS Major Status: General failure (GSS Minor Status Error Chain: globus_gsi_gssapi: Unable to read credential for import globus_gsi_gssapi: Error with gss credential handle globus_gsi_gssapi: Error with openssl: Couldn't set the private key to be used for the SSL context OpenSSL Error: x509_cmp.c:398: in library: x509 certificate routines, function X509_check_private_key: key values mismatch

It is not very meaningful for the end user, isn't it ? I wonder if you think that something more human-readable can be fired out when this particular scenario (keyfile or even proxyfile containing a passphrase) occurs...