Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Auto configuration failed #15449

Closed
r3dpars3c opened this issue Aug 25, 2020 · 19 comments
Closed

Auto configuration failed #15449

r3dpars3c opened this issue Aug 25, 2020 · 19 comments

Comments

@r3dpars3c
Copy link

Hello i got the following error after runnig the below command

root@kali:/home/kali/Desktop# phantomjs hello.js
Auto configuration failed
140356851656640:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:185:filename(libssl_conf.so): libssl_conf.so: cannot open shared object file: No such file or directory
140356851656640:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
140356851656640:error:0E07506E:configuration file routines:MODULE_LOAD_DSO:error loading dso:conf_mod.c:285:module=ssl_conf, path=ssl_conf
140356851656640:error:0E076071:configuration file routines:MODULE_RUN:unknown module name:conf_mod.c:222:module=ssl_conf

@jgonggrijp
Copy link

@Aaryan9898 Did you solve the problem, and if so, would you mind sharing the solution? Thanks in advance.

@r3dpars3c
Copy link
Author

Yes the following worked for me
Just Uncomment the following line putting # in /etc/ssl/openssl.cnf
[default_conf]
#ssl_conf = ssl_sect

@x-yuri
Copy link

x-yuri commented Sep 18, 2020

In my case, the line was not commented out. What helped me is:

$ OPENSSL_CONF=/etc/ssl phantomjs --version

Debian 10, PhantomJS 2.1.1.

Auto configuration failed
139776298270336:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:185:filename(libssl_conf.so): libssl_conf.so: cannot open shared object file: No such file or directory
139776298270336:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
139776298270336:error:0E07506E:configuration file routines:MODULE_LOAD_DSO:error loading dso:conf_mod.c:285:module=ssl_conf, path=ssl_conf
139776298270336:error:0E076071:configuration file routines:MODULE_RUN:unknown module name:conf_mod.c:222:module=ssl_conf

@snowc0de
Copy link

I am having the same issue. None of those things worked for me :(

@JanTrotnow
Copy link

Just had the same issue a few moments ago. Using OPENSSL_CONF=/etc/ssl fixed it for me.

I wonder what is causing this as I didn't update any specific packages. Do you have any idea?

@benz0li
Copy link

benz0li commented Jan 6, 2021

Most probably related to openssl-1.1.1: See https://wiki.debian.org/ContinuousIntegration/TriagingTips/openssl-1.1.1 for more information.

On Debian, the problem occurs with versions >= 10 (buster). On Ubuntu LTS with versions >= 20.04. #15449 (comment) should work.

@x-yuri
Copy link

x-yuri commented Jan 6, 2021

@JanTrotnow Didn't update any npm packages? OS packages? What operating system? Do you have unattended-upgrades installed?

@func0der
Copy link

The issue should be re-opened until we undertand it and find out, who is responsible for fixing it.

Please re-open

@xtaraim
Copy link

xtaraim commented Jul 18, 2021

it works !

OPENSSL_CONF=/etc/ssl phantomjs --version

@MincoMK
Copy link

MincoMK commented Jul 29, 2021

export OPENSSL_CONF=/etc/ssl

@joshheinrichs-shopify
Copy link

As far as I can tell, the only reason the above suggestion works is because you're supposed to point OPENSSL_CONF at a config file, not a directory. The above is effectively equivalent to OPENSSL_CONF=/dev/null.

@x-yuri
Copy link

x-yuri commented Sep 7, 2022

Now that would be funny. From what I can see I found the solution here.

dizzystuff added a commit to fromholdio/php-phantomjs that referenced this issue Sep 26, 2022
dizzystuff added a commit to fromholdio/phantomjs-installer that referenced this issue Sep 26, 2022
gabrielsolomon added a commit to gabrielsolomon/php-phantomjs that referenced this issue Sep 28, 2022
@MostHated
Copy link

MostHated commented Nov 18, 2022

Strange, doing either: export OPENSSL_CONF=/dev/null; phantomjs --version or OPENSSL_CONF=/dev/null phantomjs --version , etc (or actually setting export OPENSSL_CONF=/dev/null in my profile exports) does not work for me in zsh, but if I open powershell and do $env:OPENSSL_CONF="/etc/ssl"; phantomjs --version, that does work.

@x-yuri
Copy link

x-yuri commented Nov 19, 2022

Depending on your OS, you might want to try it with strace.

@coelhocao
Copy link

coelhocao commented Dec 8, 2022

Yes the following worked for me Just Uncomment the following line putting # in /etc/ssl/openssl.cnf [default_conf] #ssl_conf = ssl_sect

I'm using Ubuntu LTS 20.04. I don't know where this configuration is found/done to solve it. Could someone point me there? Is it when installing phantomjs from a terminal?

@bdteo
Copy link

bdteo commented Dec 9, 2022

Yes the following worked for me Just Uncomment the following line putting # in /etc/ssl/openssl.cnf [default_conf] #ssl_conf = ssl_sect

I'm using Ubuntu LTS 20.04. I don't know where this configuration is found/done to solve it. Could someone point me there? Is it when installing phantomjs from a terminal?

You can do the following. It will still work:

# download binary openssl packages from Impish builds
wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/openssl_1.1.1f-1ubuntu2.16_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_1.1.1f-1ubuntu2.16_amd64.deb
wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb

# install downloaded binary packages
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb
sudo dpkg -i libssl-dev_1.1.1f-1ubuntu2.16_amd64.deb
sudo dpkg -i openssl_1.1.1f-1ubuntu2.16_amd64.deb

Cheers!

@x-yuri
Copy link

x-yuri commented Dec 10, 2022

download binary openssl packages from Impish builds

@bdteo What makes them Impish? Looks Focalish to me:
https://packages.ubuntu.com/focal/openssl (1.1.1f-1ubuntu2.16)
https://packages.ubuntu.com/impish/openssl (1.1.1l-1ubuntu1.6)

@RakeshSuvvari
Copy link

Just had the same issue a few moments ago. Using OPENSSL_CONF=/etc/ssl fixed it for me.

I wonder what is causing this as I didn't update any specific packages. Do you have any idea?

This works for me on Ubuntu 22.04
Thanks

@DemOnJR
Copy link

DemOnJR commented Apr 25, 2023

Just use

export OPENSSL_CONF=/etc/ssl/

Then again

phantomjs --version

Result

2.1.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests