Ignore:
Timestamp:
07/06/10 15:11:20 (9 years ago)
Author:
pjkersha
Message:

Incomplete - task 5: MyProxy? Logon HTTPS Interface

  • Working myproxy-ws-get-trustroots.sh http client shell script.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/MyProxyWebService/myproxy/server/test/myproxy-ws-logon.sh

    r6937 r6943  
    4444 
    4545if [ -z $uri ]; then 
    46     echo -e Give the URI for the MyProxy Logon web service ; 
     46    echo -e Give the URI for the MyProxy web service logon request; 
    4747    echo -e $usage >&2 ; 
    4848    exit 1; 
     
    9090# Post request to MyProxy web service passing username/password for HTTP Basic 
    9191# auth based authentication.   
    92 # Nb.  
    93 # 1) -t 1 to ensure only one attempt is made 
    94 # 2) --auth-no-challenge force sending of username/password to allow for servers that may not issue an authentication challenge 
    95 #wget $uri --http-user=$username --http-password=$password --post-file=$certreqfilepath --ca-directory=$cadir -O $outfilepath -t 1 --auth-no-challenge 
    96 #response=$(curl $uri -u $username:$password -d "$(cat $certreqfilepath)" --capath $cadir -w " %{http_code}" -s -S) 
    97 #response=$(curl $uri -u $username:$password -F "certificate_request=@${certreqfilepath};get_trustroots=1" --capath $cadir -w " %{http_code}" -s -S) 
    9892response=$(curl $uri -u $username:$password --data-urlencode "certificate_request=$(cat $certreqfilepath)" --capath $cadir -w " %{http_code}" -s -S) 
    9993responsemsg=$(echo "$response"|sed '$s/ *\([^ ]* *\)$//') 
Note: See TracChangeset for help on using the changeset viewer.