Ignore:
Timestamp:
07/06/10 16:38:38 (9 years ago)
Author:
pjkersha
Message:

Incomplete - task 5: MyProxy? Logon HTTPS Interface

  • working unit tests with shell script clients called from the unit tests
File:
1 edited

Legend:

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

    r6943 r6945  
    22# 
    33# Client script for web service interface to MyProxy get-trustroots based on  
    4 # openssl and curl.  Get trust roots retrieves the CA certificate issuer(s) of 
    5 # the MyProxy server's SSL certificate 
     4# curl and base64 commands.  Get trust roots retrieves the CA certificate  
     5# issuer(s) of the MyProxy server's SSL certificate 
    66# 
    77# @author P J Kershaw 07/06/2010 
     
    1313# $Id$ 
    1414cmdname=$(basename $0) 
    15 cmdline_opt=`getopt -o hU:b --long help,uri:,bootstrap: -n "$cmdname" -- "$@"` 
     15cmdline_opt=`getopt -o hU:b --long help,uri:,bootstrap -n "$cmdname" -- "$@"` 
    1616 
    1717usage="Usage: $cmdname [-U MyProxy Web Service URI][-b]\n 
     
    5959    ca_arg="--capath $cadir" 
    6060else 
     61    echo Bootstrapping MyProxy server root of trust. 
    6162    ca_arg="--insecure" 
    6263fi 
    6364 
    6465# Post request to MyProxy web service 
    65 echo curl $uri $ca_arg -w " %{http_code}" -s -S 
    66 response=$(curl $uri $ca_arg -w " %{http_code}" -s -S) 
     66response=$(curl $uri --sslv3 $ca_arg -w " %{http_code}" -s -S) 
    6767responsemsg=$(echo "$response"|sed '$s/ *\([^ ]* *\)$//') 
    6868responsecode=$(echo $response|awk '{print $NF}') 
     
    7979    echo "$filecontent" > $cadir/$filename 
    8080done 
     81 
     82echo Trust roots have been installed in $cadir. 
Note: See TracChangeset for help on using the changeset viewer.