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

Fix the generation of a multi-level proxy

parent 27ec3f7e
No related branches found
No related tags found
1 merge request!27Resolve "Use a throw-away CA for the tests"
......@@ -84,8 +84,7 @@ chmod 600 "${certs_dir}"/${proxy_name}.key.pem
# proxy chain with 3 delegations, without VOMS attributes
proxy_name=6
# the following command fails with "validation error: unable to get issuer certificate [subject=/C=IT/O=IGI/CN=Test0/CN=730308951,issuer=/C=IT/O=IGI/CN=Test0]", but it can be ignored
voms-proxy-init2 -cert "${certs_dir}"/3.cert.pem -key "${certs_dir}"/3.key.pem --certdir trust-anchors --out "${certs_dir}"/${proxy_name}.pem || true
env X509_USER_PROXY="${certs_dir}/3.pem" X509_CERT_DIR="${ta_dir}" voms-proxy-init2 --out "${certs_dir}"/${proxy_name}.pem -noregen -dont-verify-ac
awk '/BEGIN CERTIFICATE/,/END CERTIFICATE/' "${certs_dir}"/${proxy_name}.pem > "${certs_dir}"/${proxy_name}.cert.pem
awk '/BEGIN RSA PRIVATE KEY/,/END RSA PRIVATE KEY/' "${certs_dir}"/${proxy_name}.pem > "${certs_dir}"/${proxy_name}.key.pem
chmod 600 "${certs_dir}"/${proxy_name}.key.pem
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