Answer the question
In order to leave comments, you need to log in
How to feed Sberbank certificates for the application to the curl if they do not pass openssl checks and are not readable at all?
There is a test application (a PlatiQR subscription is connected to it) registered on developer.sberbank.ru
It has:
Answer the question
In order to leave comments, you need to log in
It helped not to unload them into separate files. Oh, this savings ...
Instead of slicing a bunch of files, it was necessary to do this:
openssl pkcs12 -in PFXCertReceivedFromSber.p12 -out TheSameButInThePEM.pem -nodes
Openssl, when converting from pkcs12, for some reason sculpts Bag attributes into the PEM file (certain properties of the pkcs12 container in text form).
The key can be brought back to normal as follows:
openssl rsa -in private.key -out private2.key
Certificate:
openssl.exe x509 -in cert.cer -out certs.cer
Unless the last command for the chain of certificates is suitable, because only the first one will come out. Just open cacerts.cer in a text editor and leave only the certs directly:
-----BEGIN CERTIFICATE-----
MII....
-----END CERTIFICATE-----
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question