473,568 Members | 2,964 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_ne w();
echo gettype($privke y)."\n";
while (($e = openssl_error_s tring()) !== 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_ne w(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 2420

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

Similar topics

2
2155
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
2715
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 'x509_extensions' and/or 'req_extensions' fails to generate/sign a certificate with the desired X.509 extensions included in the signed certificate....
0
2438
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 and can provide a solution. I have added HAVE_OPENSSL and HAVE_VIO to the preprocessor definitions and added the libeay32.lib and ssleay32.lib to the...
2
5267
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: ../configure --with-openssl --enable-odbc --with-perl --enable-multibyte
17
9978
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
3070
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 console. It tells the follow error for compiling each .c file. d:\tornado2.2\host\x86-win32\bin\ccppc.exe: *** conflicting versions
4
6571
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 tried to understand the error messages but for me they aren't useful. And now I'm here and hope that somebody has experience and can tell me the...
0
1553
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 clueless as to what to do next. i tried typing https://localhost/, and nothing happened. are there things to compile? what needs to be done in order to...
4
4876
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 the latest version of pre-compiled version of OpenSSL from /www.shininglightpro.com/products/ Win32OpenSSL.html website. So AFAIK there is no need for...
0
7604
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8117
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7660
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7962
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5498
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3651
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2101
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 we have to send another system
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
932
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.