473,503 Members | 1,696 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

openSSL with PHP on Win32

I need a little shove in the right direction.
I've got the openSSL extension successfully installed for PHP
http://www.php.net/manual/en/ref.openssl.php

But I'm not having any luck using it.

FYI. I'm wanting to encrypt data in a database with a public key and
decrypt with a private key (openSSL seems to be the best solution..).

system:
Apache/1.3.24
PHP Version 4.3.3
NT 4

echo '<PRE>';
$privkey = openssl_pkey_new();
echo gettype($privkey)."\n";
while (($e = openssl_error_string()) !== false) {
echo $e . "\n";
}
echo '</PRE>';

outputs:
resource
error:0E06D06C:configuration file routines:NCONF_get_string:no value
(above error a total of 6 times)

same prob with
$privkey = openssl_pkey_new(array('config'=>'c:/php/openssl/openssl.cnf'));

I'm using the openssl.cnf that came with php

any help would be greatly appreciated.
Jul 17 '05 #1
0 2401

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2152
by: Douglas E. | last post by:
Hi :-} Is there a site that I can go to get a tutorial on running OpenSSL? I have looked all over the place plus I have three books and there is not anything on OpenSSL. Thx ahead
0
2714
by: User1001 | last post by:
I have been trying to enable/use specific OpenSSL extensions that I use in generating certificates manually, via PHP5 + php5-openssl module/extension. Filling out the "configargs" array with...
0
2423
by: renniw one | last post by:
Hi, Can anyone point me to a resource which details the process of compiling mysql server with openssl support on windows using VC++ preferable? If not, maybe someone has run across this problem...
2
5263
by: Christopher Murtagh | last post by:
Greetings, I'm trying to build 7.3.4 and I've come across two problems, one during the configure and the other afterward. Problem 1) Trying to build with openssl support gives this: ...
17
9948
by: cpptutor2000 | last post by:
Could some C guru please help me? I have a simple piece of code as: #include <stdio.h> #include <stdlib.h> #include <openssl/rand.h> int main(){ unsigned char temp; RAND_bytes(temp, 4);
2
3064
by: Allen | last post by:
I use current Cygwin to build openssl-0.9.8e for Vxworks on Windows XP platform. Run ./Configure no-asm no-threads --openssldir d:/openssl vxworks- ppc405 is Ok. And then run make from bash...
4
6564
by: Patrick | last post by:
Hello, I'm currently trying the OpenSSL Library, but I got some problems. I want to create a server and client application that communicate through the OpenSSL API, but this code doesn't work. I...
0
1547
by: watusiboy | last post by:
i have downloaded and installed shining light openssl (particularly Win32 OpenSSL v0.9.8g Light on their website http://www.slproweb.com/products/Win32OpenSSL.html).so after the installation, i am...
4
4870
by: Tan | last post by:
Hi folk, I'm trying to install latest OpenSSL version in VS2008 Express Edition on WinXP. I have downloaded and installed the redistributable for VC+ +2008 (including SP1), and also installed...
0
7083
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6988
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7456
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5011
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3166
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1510
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
379
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.