Bug 2499 - grid-cert-request interactive mode
: grid-cert-request interactive mode
Status: RESOLVED FIXED
: GSI C
Credentials and Proxies
: development
: PC Linux
: P3 normal
: ---
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-12-21 23:17 by
Modified: 2008-08-11 14:55 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-12-21 23:17:52
grid-cert-request interactive mode is hard coded to use the
globus-user-ssl.conf, even when it's a host cert request.

Here's the patch:

@@ -591,9 +575,15 @@
     # Create the Key and Request Files

     if test ! -z "${INTERACTIVE}" ; then
-        ${SSL_EXEC} req -new -keyout ${KEY_FILE} -out ${REQ_OUTPUT} \
-              -rand ${RAND_TEMP}:/var/adm/wtmp:/var/log/messages \
-              -config ${SSL_USER_CONFIG} ${NO_DES}
+        if test "${SERVICE}" = "user" ; then
+             ${SSL_EXEC} req -new -keyout ${KEY_FILE} -out ${REQ_OUTPUT} \
+                   -rand ${RAND_TEMP}:/var/adm/wtmp:/var/log/messages \
+                   -config ${SSL_USER_CONFIG} ${NO_DES}
+        else
+             ${SSL_EXEC} req -new -keyout ${KEY_FILE} -out ${REQ_OUTPUT} \
+                   -rand ${RAND_TEMP}:/var/adm/wtmp:/var/log/messages \
+                   -config ${SSL_HOST_CONFIG} ${NO_DES}
+        fi
         RET=$?
         ${GLOBUS_SH_RM-rm} -f ${RAND_TEMP}
------- Comment #1 From 2004-12-22 10:14:31 -------
Checked in a variation of this patch.

/Sam