unnecessary dependency to fdescfs #20

Closed
opened 2025-12-29 00:22:20 +01:00 by adam · 1 comment
Owner

Originally created by @erdgeist on GitHub (Dec 19, 2015).

The construct

<(cat "${OPENSSL_CNF}" <(printf "[SAN]\nsubjectAltName=%s" "${SAN}"))

leads to
No such file or directory:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/bio/bss_file.c:126:fopen('/dev/fd/63','rb')

under FreeBSD, if fdescfs is not mounted.

A simple

cp "${OPENSSL_CNF}" /tmp/foo.cnf
printf "[SAN]\nsubjectAltName=%s" "${SAN}" >> /tmp/foo.cnf
openssl req -new -sha256 -key "${BASEDIR}/certs/${domain}/${privkey}" -out "${BASEDIR}/certs/${domain}/cert-${timestamp}.csr" -subj "/CN=${domain}/" -reqexts SAN -config /tmp/foo.cnf

makes it work here.

Originally created by @erdgeist on GitHub (Dec 19, 2015). The construct <(cat "${OPENSSL_CNF}" <(printf "[SAN]\nsubjectAltName=%s" "${SAN}")) leads to No such file or directory:/usr/src/secure/lib/libcrypto/../../../crypto/openssl/crypto/bio/bss_file.c:126:fopen('/dev/fd/63','rb') under FreeBSD, if fdescfs is not mounted. A simple cp "${OPENSSL_CNF}" /tmp/foo.cnf printf "[SAN]\nsubjectAltName=%s" "${SAN}" >> /tmp/foo.cnf openssl req -new -sha256 -key "${BASEDIR}/certs/${domain}/${privkey}" -out "${BASEDIR}/certs/${domain}/cert-${timestamp}.csr" -subj "/CN=${domain}/" -reqexts SAN -config /tmp/foo.cnf makes it work here.
adam closed this issue 2025-12-29 00:22:21 +01:00
Author
Owner

@lukas2511 commented on GitHub (Dec 19, 2015):

thx

@lukas2511 commented on GitHub (Dec 19, 2015): thx
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#20