Difference between revisions of "Computing/SSL"

From OpenWetWare
Jump to: navigation, search
(New page: [http://goc.eu-eela.org/operations/certification-authority-and-virtual-organisation-operations/certificate-manipulation/ Certificate manipulation] Converting a certificate from pkcs12 to p...)
 
Line 1: Line 1:
 
[http://goc.eu-eela.org/operations/certification-authority-and-virtual-organisation-operations/certificate-manipulation/ Certificate manipulation]
 
[http://goc.eu-eela.org/operations/certification-authority-and-virtual-organisation-operations/certificate-manipulation/ Certificate manipulation]
Converting a certificate from pkcs12 to pem:
+
 
 +
Converting a certificate from pkcs12 to pem (first step extracts the private key and the second one extracts the public key):
 
  openssl pkcs12 -nocerts -in usercert.p12 -out ~user/.globus/userkey.pem
 
  openssl pkcs12 -nocerts -in usercert.p12 -out ~user/.globus/userkey.pem
 
  chmod 400 ~user/.globus/userkey.pem
 
  chmod 400 ~user/.globus/userkey.pem
 
  openssl pkcs12 -clcerts -nokeys -in usercert.p12 -out ~user/.globus/usercert.pem
 
  openssl pkcs12 -clcerts -nokeys -in usercert.p12 -out ~user/.globus/usercert.pem

Revision as of 22:12, 1 August 2007

Certificate manipulation

Converting a certificate from pkcs12 to pem (first step extracts the private key and the second one extracts the public key):

openssl pkcs12 -nocerts -in usercert.p12 -out ~user/.globus/userkey.pem
chmod 400 ~user/.globus/userkey.pem
openssl pkcs12 -clcerts -nokeys -in usercert.p12 -out ~user/.globus/usercert.pem