Re: [PHP] openssl question

2011-04-18 Thread Sean Greenslade
On Wed, Apr 6, 2011 at 3:41 PM, Kai Renz wrote: > Hi, > > i try to create a self signed certificate using this code: > > I'm using a windows box with xampp installed. > > regards. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > ht

[PHP] openssl question

2011-04-06 Thread Kai Renz
Hi, i try to create a self signed certificate using this code: "DE", "stateOrProvinceName" => "test", "localityName" => "test", "organizationName" => "test", "organizationalUnitName" => "test", "commonName" => "test", "emailAddress" => "t...@test.de" ); $privkey = opens

[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