[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 wil

Re: [PHP] php, openssl and GOST ciphers

2013-03-27 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 h

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) /usr/l

[PHP] PHP OpenSSL - Problem with "openssl_pkcs7_verify"

2012-07-21 Thread Samuel Lopes Grigolato
Hello, I'm having some trouble trying to put the "openssl_pkcs7_verify" function to work. I have a file signed with a valid certificate with this software: http://www.signfiles.com/p7s-signer/ What I'm trying to achieve is to extract the contents o

[PHP] PHP OpenSSL on the fly EAP/TLS certificates generation

2004-06-02 Thread Florian
Hi all ! I would like PHP to generate on the fly EAP/TLS certificates. Firt I wanted to use a shell script, but PHP can not answer "yes" (key y) through proc_open when I wanted, so that now, I would like to now if PHP is able to do the same things as when you call openssl with a shell script. I'm

[PHP] php openssl

2003-11-18 Thread Fejes Jozsef
Hi! I'd really love to use PKCS12 functions from PHP but it's not supported. Why?!?!?!?! Currently I have to run the 'openssl pkcs12' system command, all the other things can be done from php. It's not in the least elegant. Anyone knows if there's going to be support for it or there's already a pat

[PHP] PHP OpenSSL question

2003-03-04 Thread Pierre-Luc Soucy
Hi, I have loaded the appropriate keys: //load keys $ca_file = openssl_x509_read('file://'.$ca_file); $public_key = openssl_pkey_get_public('file://'.$public_key_file); $private_key = openssl_pkey_get_private('file://'.$private_key_file); and can successfully encrypt data: $to_send = ' http://w