Answer the question
In order to leave comments, you need to log in
How to configure curl so that it supports GOST encryption?
Hello. I am developing a service in PHP for integration with the public services portal using the SOAP protocol. They require that the connection be secure and encrypted according to GOST. Available:
- Ubuntu 15.04
- OpenSSL 1.0.1f with GOST encryption enabled.
- curl 7.45.0-DEV (libcurl/7.37.1 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3)
According to the instructions, I generated a CryptoPRO test certificate and sent it to them. OpenSSL connects fine.
openssl s_client -connect address.ru:443 -CAfile '/home/ipc/cert/cacert.pem' -cert '/home/ipc/cert/certificate.pem' -key '/home/ipc/cert/private.pem'
curl --engine gost address.ru:443 --cert '/home/ipc/cert/certificate.pem' --key '/home/ipc/cert/private.pem' --ciphers TLSv1 --cacert '/home/ipc/cert/cacert.pem'
gives the error "curl: (51) SSL: couldn't get peer certificate!" Answer the question
In order to leave comments, you need to log in
CryptoPRO has a ready-made cprocsp-curl package included in the CryptoPRO CSP for linux.
With CryptoPRO, too, not everything is so smooth. Is it necessary to install certificates in the CryptoPro container or can I also pass them as parameters when calling curl? Is it possible to make curl work through oepnssl? Because there are no problems with openssl at all. Thanks
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question