How to openssl_sign with SHA256

Post Reply
User avatar
modicr
Posts: 207
Joined: Fri Oct 07, 2005 7:58 am
Location: ljubljana, barje, slovenia
Contact:

How to openssl_sign with SHA256

Post by modicr »

Hello!

I would like to implement the following php code in FWH 15.08 (bcc582) or 15.09 (bcc7)

Code: Select all

$pkeyid = openssl_pkey_get_private( file_get_contents($cert_file), $cert_password);
openssl_sign($zoisrc, $zoisha256, $pkeyid, 'SHA256');
In contrib folder I found hbssl (https://github.com/harbour/core/tree/ma ... trib/hbssl)

How can I build the necessary lib-s? I would like to use the latest OpenSSL 1.0.2d

Thanks, Roman
© I'm not patented!
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: How to openssl_sign with SHA256

Post by Antonio Linares »

Roman,

Harbour uses its own hbmk2 to build, so I would try:

hbmk2.exe hbssl.hbp
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply