I am using XAMPP for Windows for a project, which includes an OpenSSL bundle.
http://www.apachefriends.org/en/xampp-windows.html

However, I keep getting these errors and I am not sure why. I thought maybe
it couldn't locate the conf file but it is pointing to the correct one, and
openssl is enabled.

[QUOTE]
<?php

$publicKey = "../apache/bin/public.pem";
$plaintext = "String to encrypt";
openssl_public_encrypt($plaintext, $encrypted, $publicKey);
echo $encrypted;   //encrypted string

?>
[/QUOTE]

I keep getting the error
Warning: openssl_public_encrypt() [function.openssl-public-encrypt]: key
parameter is not a valid public key in C:\xampp\htdocs\test4.php on line 6
-- 
View this message in context: 
http://old.nabble.com/xampp-openssl-issue-with-php-tp30011552p30011552.html
Sent from the OpenSSL - Dev mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to