[PHP] php, openssl and GOST ciphers - problem with GOST R 34.10-2001

2013-06-24 Thread Eugene M. Zheganin
Hi. So, back to the GOST ciphers problem. This is kinda a long story. Basically, there's tow sides of it. On one side there's a lack of OPENSSL_config() calls in ext/openssl/openssl.c. On the other hand, there's also a curl, which is also linked to Openssl. In case you want any encryption, you

Re: [PHP] php, openssl and GOST ciphers

2013-03-28 Thread Eugene M. Zheganin
Hi. On 28.03.2013 11:43, czir...@gmail.com wrote: My suggestion is to ensure all the paths to what you use are valid This should help: var_dump('file://'.realpath('./p12.pem')); Does that and the rest of the files Exists? I do hope these files are not in your document root Thanks for your

Re: [PHP] php, openssl and GOST ciphers

2013-03-27 Thread czirzow
My suggestion is to ensure all the paths to what you use are valid This should help: var_dump('file://'.realpath('./p12.pem')); Does that and the rest of the files Exists? I do hope these files are not in your document root Curt. -- Resistance is futile On Mar 22, 2013, at 12:35 PM, Eugene

[PHP] php, openssl and GOST ciphers

2013-03-22 Thread Eugene M. Zheganin
Hi. I'm trying to sign an S/MIME with PHP, using a pair of GOST-encrypted certificate and a private key. When using openssl itself from a console everything is fine: /usr/local/openssl/bin/openssl cms -sign -in file.txt -out signedfile.txt -signer p12.pem (signedfile.txt is created)