Re: EXT : LibCryptoEVPInterface OPENSSL_VERSION_NUMBER

Bob Nemec <[email protected]> Fri, 18 Mar 2022 20:11:34 +0000 (UTC)
Newsgroups gmane.comp.lang.smalltalk.vwnc
Message-ID <[email protected]>
 Yes, tried that. Also tried adding libcrypt.so to match LibCryptoEVPInterface class>>libcryptoSO.
$ ll libcrypt*-rwxr-xr-x. 1 root root 38604 Aug  6  2019 libcrypt-2.17.solrwxrwxrwx. 1 root root    16 Mar 18 15:30 libcrypt.so -> libcrypt-2.17.solrwxrwxrwx. 1 root root    16 Feb  7  2020 libcrypt.so.1 -> libcrypt-2.17.so
Guess it's time to submit a problem ticket with Cincom... I was hoping it was a simple config error on my part. 
Bob 

    On Friday, March 18, 2022, 03:38:08 p.m. EDT, Yanni Chiu <[email protected]> wrote:  
 
 Have you tried:
/usr/lib/libcrypt-2.17.so

Instead of:
'VW_LIBCRYPTO'   --> '/usr/lib/libcrypt.so.1'

The “-2.17” likely matters.
On Fri, Mar 18, 2022 at 1:59 PM Bob Nemec <[email protected]> wrote:

 
Thanks for the help. I've packaged a 64-bit VW image to test this, and I'm getting the same result. 
Any other diagnostic suggestions?
Kernel.SystemUtils getEnvironmentVariable: 'VW_LIBCRYPTO'   --> '/usr/lib/libcrypt.so.1'
Crypto.LibCryptoEVPInterface OPENSSL_VERSION_NUMBER --> nil

$ openssl versionOpenSSL 1.0.2k-fips  26 Jan 2017
$ ll /usr/lib/libcrypt*-rwxr-xr-x. 1 root root 38604 Aug  6  2019 /usr/lib/libcrypt-2.17.solrwxrwxrwx. 1 root root    16 Feb  7  2020 /usr/lib/libcrypt.so.1 -> libcrypt-2.17.so
Bob Nemec
    On Thursday, March 17, 2022, 10:23:04 a.m. EDT, Guerrero, Axel [US] (ES) <[email protected]> wrote:  
 
 
By any chance, have you set the environment variable VW_LIBCRYPTO ?
 
The variable will look something like VW_LIBCRYPTO=/usr/lib/libcrypto.so.10
 
  
 
Also, make sure you have the appropriate libraries for the “bitness” of your image (32-bit libraries for a 32-bit image,  64-bit libraries for a 64-bit image).
 
  
 
Axel Guerrero
 
  
 
From: [email protected] <[email protected]>On Behalf Of Bob Nemec
Sent: Thursday, March 17, 2022 9:13 AM
To: [email protected]
Subject: EXT :[vwnc] LibCryptoEVPInterface OPENSSL_VERSION_NUMBER
 
  
 
I think I may be missing something obvious when using HttpClient>>post:formData: to an https url. 
I get an exception because LibCryptoHash>>initializeContext fails due to LibCrypto EVP_MD_CTX = nil.
 
Tracing Crypto.LibCryptoEVPInterface initializeLibCrypto I end up at OPENSSL_VERSION_NUMBER which answers nil, running VW 8.3.2 
 
  
 
This image is running on Linux, where I see...
 
  
 
    $ openssl version
 
    OpenSSL 1.0.2k-fips 26 Jan 2017
 
  
 
...but I always get nil from...
 
  
 
LibCryptoEVPInterface OPENSSL_VERSION_NUMBER 
 
  
 
...is there setup step that I'm missing? I've read through the VW Security Guide, but no luck so far. 
 
  
 
Thanks for any help,
 
Bob Nemec