#!/bin/sh

BIN=openssl

if [ $# -ne 1 ]
then
 echo "Usage : $0 cert.p12"
 exit 0
fi

$BIN pkcs12 -nocerts -in $1 -out $HOME/.globus/userkey.pem
$BIN pkcs12 -clcerts -nokeys -in $1 -out $HOME/.globus/usercert.pem
