Skip to content
Snippets Groups Projects
Commit 20c62bae authored by Francesco Giacomini's avatar Francesco Giacomini
Browse files

Generate also the LSC file

parent 981415a9
No related branches found
No related tags found
1 merge request!27Resolve "Use a throw-away CA for the tests"
...@@ -10,11 +10,14 @@ fi ...@@ -10,11 +10,14 @@ fi
base_dir=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd) base_dir=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
certs_dir="${base_dir}"/certs certs_dir="${base_dir}"/certs
ta_dir="${base_dir}"/trust-anchors ta_dir="${base_dir}"/trust-anchors
vomsdir="${base_dir}"/vomsdir
rm -rf "${certs_dir}" rm -rf "${certs_dir}"
mkdir -p "${certs_dir}" mkdir -p "${certs_dir}"
rm -rf "${ta_dir}" rm -rf "${ta_dir}"
mkdir -p "${ta_dir}" mkdir -p "${ta_dir}"
rm -rf "${vomsdir}"
mkdir -p "${vomsdir}"
[ -d "igi_test_ca2" ] && remove_ca.sh igi_test_ca2 [ -d "igi_test_ca2" ] && remove_ca.sh igi_test_ca2
export CA_NAME=igi_test_ca2 export CA_NAME=igi_test_ca2
...@@ -38,6 +41,9 @@ cp igi_test_ca/certs/test0.* "${certs_dir}" ...@@ -38,6 +41,9 @@ cp igi_test_ca/certs/test0.* "${certs_dir}"
make_cert.sh star_test_example make_cert.sh star_test_example
cp igi_test_ca/certs/star_test_example.* "${certs_dir}" cp igi_test_ca/certs/star_test_example.* "${certs_dir}"
mkdir -p "${vomsdir}"/test.vo
openssl x509 -in "${certs_dir}"/star_test_example.cert.pem -noout -subject -issuer -nameopt compat \
| sed -e 's/subject=//' -e 's/issuer=//' > "${vomsdir}"/test.vo/voms.example.lsc
# test 1 # test 1
echo | voms-proxy-init -cert "${certs_dir}"/test0.p12 --valid 10:0 --out "${certs_dir}"/0.pem --pwstdin echo | voms-proxy-init -cert "${certs_dir}"/test0.p12 --valid 10:0 --out "${certs_dir}"/0.pem --pwstdin
......
/C=IT/O=IGI/CN=*.test.example
/C=IT/O=IGI/CN=Test CA
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment