Skip to content

Commit

Permalink
openssl location change depending on the S.O setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Gagoar committed Apr 15, 2012
1 parent 574a8db commit 6cfa30f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions wsaa-client.sh
Expand Up @@ -15,6 +15,7 @@ TAFN="TA.xml" # file name of the output file
#
# No further modifications should be needed below this line
#==============================================================================

function MakeTRA()
#
# Generate the XML containing the Access Ticket Request (TRA)
Expand Down Expand Up @@ -44,11 +45,12 @@ function MakeCMS()
# Generate de CMS container (TRA + sign + certificate)
#
{
OPENSSL=$(which openssl)
CMS=$(
echo "$TRA" |
/usr/local/ssl/bin/openssl cms -sign -in /dev/stdin -signer $CRT -inkey $KEY -nodetach \
$OPENSSL cms -sign -in /dev/stdin -signer $CRT -inkey $KEY -nodetach \
-outform der |
/usr/local/ssl/bin/openssl base64 -e
$OPENSSL base64 -e
)
}
#------------------------------------------------------------------------------
Expand Down Expand Up @@ -137,6 +139,8 @@ token: '$TOKEN'
sign: '$SIGN'
EOF
}


#------------------------------------------------------------------------------
#
# MAIN program
Expand Down

0 comments on commit 6cfa30f

Please sign in to comment.