Link to home
Start Free TrialLog in
Avatar of ShadowColossus
ShadowColossus

asked on

PCKS7 and PEM

Has anyone had any experience with a pkcs7 file? I need a PEM certificate file to upload to my load balancer for ssl. I honestly dont ' know know what a PEM file is or what a pcks7 file, but from my research on the web it seems pkcs7  encodes the pem file. Through windows I was able to export two .cer files from the pkcs 7file (I chose 64bit based encoding). Now I believe that the 2 .cer files that I exported are the PEM files that I need to upload. Does this make sense to anyone?  
Avatar of Carlos Hernandez
Carlos Hernandez
Flag of United States of America image

Which loadbalancer are you using?  Many use Linux Kernal and have openssl loaded on them.  Us can use the following command to convert the pkcs file to pem:

opensll -pkcs# -in cert.pfx -out cert.pem -passin pass:password -nodes

You can do a man on openssl to get the switches that apply for your situation.
It might be easier to create a pkcs12 format from your IIS server and then translate the using openssl.
Avatar of ShadowColossus
ShadowColossus

ASKER

i'm using a serveriron 4g-ssl. the certificate is not installed on the IIS server, i thought it should be installed on the load balancer since ssl connection will terminate at the load balancer. Does the conversion of the pkcs12 to pem, extract the private key and the certificate?
Yes it does.  You will need the pass key used during the creation on the csr, thats if one was used to create it.  
ok i'm thinking of maybe installing the certificate in IIS then export the certificate and the private key. after that install it onto the load balancer.
ASKER CERTIFIED SOLUTION
Avatar of Carlos Hernandez
Carlos Hernandez
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks for the help CLoz