M
M
Mercury132016-11-25 15:58:32
Digital certificates
Mercury13, 2016-11-25 15:58:32

Is it possible to set the BODY of a CA file in cURL?

There is an accounting program. It creates self-signed TLS certificates in PEM format (each server has its own).
To set the path to this file, cURL has the CURLOPT_CAINFO option.
It so happened that a) this PEM stores both the public and private parts of the certificate, while we only need the public part; b) due to the fact that each server has its own certificate, it will have to be stored in a data file, and not in Program Files along with the program. Is it possible to pass this public part to cURL without unpacking it into a temporary file?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question