Opened 6 months ago

Closed 4 weeks ago

#73205 closed defect (worksforme)

Adding pkcs11 provider to openssl breaks openssh: PRNG is not seeded

Reported by: minfrin Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: larryv (Lawrence Velázquez), artkiver (グレェ)
Port: openssl openssh

Description

When the following file is added to enable the pkcs11 provider (which then subsequently works with openssl), ssh breaks as follows:

Little-Net-8818:~ minfrin$ ssh --version
PRNG is not seeded

Removing the file fixes the problem.

Little-Net-8818:~ minfrin$ cat /opt/local/etc/openssl/openssl.cnf.d/pkcs11.conf

[provider_sect]
pkcs11 = pkcs11_sect

[pkcs11_sect]
module = /opt/local/libexec/openssl3/lib/ossl-modules/pkcs11.dylib
pkcs11-module-path = /Library/OpenSC/lib/opensc-pkcs11.so
#pkcs11-module-token-pin = /etc/ssl/pinfile.txt
activate = 1

Versions:

  openssl @3_25+universal (active)
  openssl3 @3.5.2_0+universal (active)
  openssh @10.0p2_3 (active)

Change History (3)

comment:1 Changed 6 months ago by jmroot (Joshua Root)

Cc: larryv artkiver added
Owner: set to neverpanic
Port: openssl added
Status: newassigned

Where does /Library/OpenSC/lib/opensc-pkcs11.so come from? Are you sure it's compatible with this version of openssl? Does using the opensc port instead make a difference?

comment:2 Changed 6 months ago by neverpanic (Clemens Lang)

What does openssl list -providers print on your system? Do you still have the default provider loaded?

comment:3 Changed 4 weeks ago by neverpanic (Clemens Lang)

Resolution: worksforme
Status: assignedclosed

This tickets sounds very similar to #68766, and indeed the openssl3 port is +universal in this report. Unfortunately the ticket does not contain the OS the reporter is on, there was no reply to my questions, and I cannot reproduce the problem.

It's possible there still is a problem with openssl +universal, potentially on older machines, although nobody else seems to be reporting other instances of #68766. I'll just close this as worksforme until somebody can reproduce.

Note: See TracTickets for help on using tickets.