---+ Converting Grid Certificates to Other Formats %BR%%BR%%BR%%BR%%BR% %X% *WARNING:* This page is obsolete. Please look at [[ https://atlas-software.docs.cern.ch/analysis/analysis_tutorial/basicSetup/grid_cert/ ]]. %BR%%BR%%BR%%BR%%BR% %TOC% * %RED% Take these [[GridCertificatePreliminaryPrecautions][Precautions]] before doing anything in =~/.globus= %ENDCOLOR% * %RED% Do these =openssl= commands on lxplus and not on your laptop / different OS to avoid issues. %ENDCOLOR% ---++ Converting to p12 from pem files * You will need to have these two files in =~/.globus= * =userkey.pem= * =usercert.pem= * Delete any old =~/.globus/myCert.p12= file first. (Take [[GridCertificatePreliminaryPrecautions][Precautions]] !) * Do this to create the p12 file. <verbatim> cd ~/.globus openssl pkcs12 -export -inkey ./userkey.pem -in ./usercert.pem -out ./myCert.p12 -name "My Grid User Certificate" chmod 400 ./myCert.p12</verbatim> ---++ Converting to pem files from p12 * You will need to have a p12 file =~/.globus/myCert.p12= * Delete any old =~/.globus/userkey.pem= and =~/.globus/usercert.pem= files first. (Take [[GridCertificatePreliminaryPrecautions][Precautions]] !) * Do this to create the =userkey.pem= and =usercert.pem= files. <verbatim> cd ~/.globus openssl pkcs12 -nocerts -in ./myCert.p12 -out ./userkey.pem openssl pkcs12 -clcerts -nokeys -in ./myCert.p12 -out ./usercert_noText.pem openssl x509 -in ./usercert_noText.pem -text > ./usercert.pem rm ./usercert_noText.pem chmod 444 ./usercert.pem chmod 400 ./userkey.pem</verbatim>
This topic: AtlasCanada
>
ComputingPage
>
GridUserCertificateInformation
>
ConvertYourGridCertificateToOtherFormats
Topic revision: r5 - 2026-10-05 - AsokaDeSilva
Copyright © 2008-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback