Hi, all. I have done "make && make install" under "sudo", then I got this when "make cert" --------------------------------------------------------------- make -C tools cert make[1]: Entering directory '/opt/stunnel-5.66/tools' ./makecert.sh . /usr /dev/urandom OpenSSL 1.1.1f 31 Mar 2020 1+0 records in 1+0 records out 256 bytes copied, 0.0001303 s, 2.0 MB/s Error configuring OpenSSL modules 139784943940928:error:25066067:DSO support routines:dlfcn_load:could not load the shared library:../crypto/dso/dso_dlfcn.c:118:filename(libproviders.so): libproviders.so: cannot open shared object file: No such file or directory 139784943940928:error:25070067:DSO support routines:DSO_load:could not load the shared library:../crypto/dso/dso_lib.c:162: 139784943940928:error:0E07506E:configuration file routines:module_load_dso:error loading dso:../crypto/conf/conf_mod.c:224:module=providers, path=providers 139784943940928:error:0E076071:configuration file routines:module_run:unknown module name:../crypto/conf/conf_mod.c:165:module=providers
Certificate details: Can't open stunnel.pem for reading, No such file or directory 139707919738176:error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:69:fopen('stunnel.pem','r') 139707919738176:error:2006D080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:76: unable to load certificate
/usr/bin/install -c -b -m 600 stunnel.pem /usr/local/etc/stunnel/stunnel.pem /usr/bin/install: cannot stat 'stunnel.pem': No such file or directory make[1]: *** [Makefile:579: cert] Error 1 make[1]: Leaving directory '/opt/stunnel-5.66/tools' make: *** [Makefile:894: cert] Error 2 ------------------------------------------------------------------ It seems I have no libproviders.so, but I have installed openssl. Can anyone help me? Thx.
On 27/10/2022 18:08, decatur93@163.com wrote:
Hi, all. I have done "make && make install" under "sudo", then I got this when "make cert"
...
139784943940928:error:25066067:DSO support routines:dlfcn_load:could not load the shared library:../crypto/dso/dso_dlfcn.c:118:filename(libproviders.so): libproviders.so: cannot open shared object file: No such file or directory
Good point. I just noticed it today. "make cert" indeed stopped working with OpenSSL older with 3.0. A workaround is to comment out (or remove) the "providers = provider_sect" line in tools/openssl.cnf. I need to find a way to fix it.
Best regards, Mike
At 2022-10-28 02:25:33, "Michał Trojnara via stunnel-users" stunnel-users@stunnel.org wrote:
On 27/10/2022 18:08, decatur93@163.com wrote:
Hi, all. I have done "make && make install" under "sudo", then I got this when "make cert"
...
139784943940928:error:25066067:DSO support routines:dlfcn_load:could not load the shared library:../crypto/dso/dso_dlfcn.c:118:filename(libproviders.so): libproviders.so: cannot open shared object file: No such file or directory
Good point. I just noticed it today. "make cert" indeed stopped working with OpenSSL older with 3.0. A workaround is to comment out (or remove) the "providers = provider_sect" line in tools/openssl.cnf. I need to find a way to fix it.
Best regards, Mike
Yes, I also found that and checked. It took me hours to build OpenSSL 3.0.5 from source code. It works well with libssl.so.3
BTW, it's the first time I ask on maillist. Thanks for your reply.
BRs,
Decatur.