View Issue Details

IDProjectCategoryView StatusLast Update
0009679Kali LinuxKali Package Bugpublic2026-05-23 15:08
Reportervanguard Assigned Toarnaudr  
PrioritynormalSeverityminorReproducibilityhave not tried
Status resolvedResolutionfixed 
Summary0009679: openssl - Kali-livebuild crashes
Description

Dear maintainers,

since latest update the build of kali-live crashes. It looks like some files have changed in openssl. The last output in build.log is this:

---- snip ----

.....
.....
Setting up python3-discovery (1.2.2-2) ...^M
Setting up libumfpack6:amd64 (1:7.12.2+dfsg-1) ...^M
Setting up debsecan (0.4.20.2) ...^M
Setting up hostapd-mana (2.6.5+git20240805.8853d5a-0kali1) ...^M
Can't open "/usr/lib/ssl/openssl.cnf" for reading, No such file or directory^M
4067A17CF57F0000:error:80000002:system library:BIO_new_file:No such file or directory:../crypto/bio/bss_file.c:67:calling fopen(/usr/lib/ssl/openssl.cnf, r)^M
4067A17CF57F0000:error:10000080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:75:^M

--- snap ----

I checked, but in ~/kali-live-/chroot/usr/lib/ssl/ there is a symlink called openssl.cnf and 5this is pointing to /etc/ssl/openssl.cnf.

Further investigations showed, that the openssl.cnf was renamed to openssl.cnf.dpkg-new.

This let me guess, that the new openssl.cnf was not yet generated or not installed or is missing at all.

I suppose in a native installed kali this will not be noticed (all my native kali installations are fine), but in live-build-creation it causes a crash.

It would be nice, if you could take a look at this little issue.

Please feel free to ask for more information (.i.e. the complete build.log or whatever).

Thank you for your help!

Best regards

Hans

Activities

vanguard

vanguard

2026-05-14 13:40

reporter   ~0021668

To precise it: At the momentduring build and configuring the openssl certificates, the openssl.cnf below /etc/ssl/ was renamed to openssl.cnf.dpkg-new, NOT the link
below ~/kali-live-/chroot/usr/lib/ssl/ !
Maybe this coould be fixed by the order (or time), the packages are unpacked and configured?

vanguard

vanguard

2026-05-15 08:24

reporter   ~0021671

I found a workaround for this problem, but it is a bit tricky:

Environment is running a kali live system.

  1. Upgrade the running kali live using apt. This makes sure, latest openssl and openssh is installed.

  2. start the build process

  3. during the build process watch the chroot and when in ~/kali-live/chroot/etc/ssl/ is created, copy oepnssl.cnf and kali.cnf from the kali environment
    to ~/kali-live/chroot/etc/ssl/

  4. Now the build does no more crash. Good luck!

Hint: You csn copy these files at any moment from another terminal before openssl wants to be configured. I made it at the monent, when aide is configured, because the configuration of aide lasts some time,
which gives me long time anough, to type the required commands. Bad solution, but works.

Hope, this issue will be fixed some day.

vanguard

vanguard

2026-05-23 09:35

reporter   ~0021701

Looks like this issue was silently fixed.

Sadly I do not know, what causes this issue, but I suppose, someone did fix it.

For now, it is working again, now workaround needed for now.

Thank you for fixing it!

If you close this bug, please add a little note, what caused this issue.

Thank you!

Best

Hans

arnaudr

arnaudr

2026-05-23 15:07

manager   ~0021703

It should be fixed with kali-defaults 2026.2.10 that has been released earlier today. kali-defaults is the package that replaces the file /etc/ssl/openssl.cnf (we replace the Debian version of this file with the Kali version). However this replacement is not atomic, so when installing all packages together, there was a gap during which the file /etc/ssl/openssl.cnf was unavailable. It just happens that the package hostapd-mana was setup before kali-defaults, at a moment where /etc/ssl/openssl.cnf was missing. And the postinst script of hostad-mana uses the openssl cli, so it needs this file.

We've seen this issue in our QA as well.

Now kali-defaults is installed earlier in the install process. We've raised its priority to "important" so that it's installed by debootstrap, ie. the very first stage of system creation.

That should, hopefully, fix this issue for good.

Thanks for the report!

Issue History

Date Modified Username Field Change
2026-05-14 07:36 vanguard New Issue
2026-05-14 13:40 vanguard Note Added: 0021668
2026-05-15 08:24 vanguard Note Added: 0021671
2026-05-23 09:35 vanguard Note Added: 0021701
2026-05-23 15:07 arnaudr Note Added: 0021703
2026-05-23 15:08 arnaudr Assigned To => arnaudr
2026-05-23 15:08 arnaudr Status new => resolved
2026-05-23 15:08 arnaudr Resolution open => fixed