Bugzilla – Bug 4917
GridShib-CA generates poor error message if MyProxy fails
Last modified: 2009-08-26 22:25:35
You need to log in before you can comment on or make changes to this bug.
If MyProxy fails a poor error message is generated by the GridShib-CA: ERROR: Error signing certificate request: Error getting credential from MyProxy: Error reading credential: Error reading certificate #1 Full session logs: Dec 15 08:17:58 computer GridShib-CA-myproxy (generateCred.cgi)[2020]: Requesting lifetime of 43200 Dec 15 08:17:58 computer GridShib-CA-myproxy (generateCred.cgi)[2020]: MyProxy request: username = XXXXXX@openidp.org lifetime = 43200 Dec 15 08:17:58 computer myproxy-server: <1672> Connection from 127.0.0.1 Dec 15 08:17:58 computer myproxy-server: <2023> Authenticated client /C=US/O=NCSA-TEST/OU=User/CN=SP-Service Dec 15 08:17:58 computer myproxy-server: <2023> trusted retrievers policy matched Dec 15 08:17:59 computer myproxy-server: <2023> Received GET request from /C=US/O=NCSA-TEST/OU=User/CN=SP-Service Dec 15 08:17:59 computer myproxy-server: <2023> issuing certificate for user XXXXXX@openidp.org with DN "/C=US/O=NCSA-TEST/OU=User//CN=XXXXXX@openidp.org" Dec 15 08:17:59 computer myproxy-server: <2023> Error opening certificate file /usr/local/SP-CA/cert.pem Internal cert generation failed CA failed to generate certificate Dec 15 08:17:59 computer myproxy-server: <2023> No such file or directory Dec 15 08:17:59 computer GridShib-CA-myproxy (generateCred.cgi)[2020]: ERROR: Error signing certificate request: Error getting credential from MyProxy: Error reading credential: Error reading certificate #1 Dec 15 08:17:59 computer myproxy-server: <2023> Client /C=US/O=NCSA-TEST/OU=User/CN=SP-Service disconnected
*** Bug 4916 has been marked as a duplicate of this bug. ***
The issue here is that the MyProxy server is failing after the cient sends the certificate request (when it tries to sign it). There is no defined method in the current GSI delegation protocol to handle an error at this point. The client is expecting a byte with the number of certificates at this point, and MyProxy is returning some error message instead. Probably the right thing to do would be to define a number of certificates == 0 as being an error, with an application-specific error message to follow. Until that (or something similar) is defined and implemented in the MyProxy server, the GridShib client code can do no better than it is today.
The corresponding MyProxy bug is <http://bugzilla.ncsa.uiuc.edu/show_bug.cgi?id=359>.
As of the MyProxy 4.6 release, this has been fixed in MyProxy. Should now verify in GS-CA.
Similar fixes applied to perl code as applied to C code. Here is a new example error message: Failure signing request: Error getting credential from MyProxy: Error from MyProxy server (more details in srver log): Certificate generation failure. Committed to 0.5 branch, slated for release in 1.0
In 1.0.0 release.