in a SCEP process I'm developing, the first step has to be this one (link)
1. CA Authentication
SCEP uses the CA certificate in order to secure the message exchange for the CSR. As a result, it is necessary to obtain a copy of the CA certificate. The GetCACert operation is used.
1.1 Request
The request is sent as a HTTP GET request. A packet capture for the request looks similar to this: GET
/cgi-bin/pkiclient.exe?operation=GetCACert
So, after sending the request I get back a ashx file which contains three X.509 certificates in some kind of binary data.
Success - The request is accepted and the signed certificate is included. The signed certificate is held within a special type of PKCS#7 called a "Degenerate Certificates-Only PKCS#7," which is a special container that can hold one or more X.509 or CRLs, but does not contain a signed or encrypted data payload.
Is there any way I can extract those three certificates using openssl? Because I'm not finding out how. I would like to extract them in a pem or der format. Thanks in advance
PS: I'm quite new with all these enviromments.