Page 1 of 1

How to openssl_sign with SHA256

Posted: Wed Nov 25, 2015 1:18 am
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

Re: How to openssl_sign with SHA256

Posted: Wed Nov 25, 2015 8:29 am
by Antonio Linares
Roman,

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

hbmk2.exe hbssl.hbp