xmlsec 1.2.25-r2 is cannot load xmlsec1-openssl
To reproduce: docker run -it —rm alpine:3.8 sh -c “apk add —no-cache xmlsec; xmlsec1 —encrypt —crypto openssl test”
the xmlsec1 command will fail with:
“/ # xmlsec1 —encrypt —crypto openssl test
func=xmlSecCryptoDLLibraryCreate:file=dl.c:line=130:obj=unknown:subj=lt_dlopenext:error=7:io
function failed:name=”libxmlsec1-openssl“; errno=2
func=xmlSecCryptoDLGetLibraryFunctions:file=dl.c:line=436:obj=unknown:subj=xmlSecCryptoDLLibraryCreate:error=1:xmlsec
library function failed:crypto=openssl
func=xmlSecCryptoDLLoadLibrary:file=dl.c:line=393:obj=unknown:subj=xmlSecCryptoDLGetLibraryFunctions:error=1:xmlsec
library function failed:
Error: unable to load xmlsec-openssl library. Make sure that you have
this it installed, check shared libraries path (LD_LIBRARY_PATH)
envornment variable or use ”—crypto" option to specify different
crypto engine.
Error: initialization failed
"
running the same command on alpine 3.7.0 works fine (alpine 3.7.0 uses xmlsec 1.2.25-r1, while alpine 3.8.0 uses xmlsec 1.2.25-r2)
(from redmine: issue id 9110, created on 2018-07-17)