[Bug 292063] [PATCH] security/create-cert: fix Warning: Can't find c_rehash

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 31 Dec 2025 04:55:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292063

            Bug ID: 292063
           Summary: [PATCH] security/create-cert: fix Warning: Can't find
                    c_rehash
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: leres@freebsd.org
          Reporter: mike@jellydonut.org
          Assignee: leres@freebsd.org
             Flags: maintainer-feedback?(leres@freebsd.org)

Created attachment 266673
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=266673&action=edit
create-cert-2.11.patch

Installed create-cert-2.11 on a FreeBSD 15.0 host recently and I'm presented
with a warning about c_rehash-not-found when running the script. Note this is
with openssl in base, not from ports.

 $ /tmp/create-cert 
c_rehash: not found
create-cert: Warning: Can't find c_rehash
create-cert: Please use -I or -C to create a config (create-cert.conf)


It appears that c_rehash was a script provided by openssl in the past, which
has largely been supplanted by 'openssl rehash'. In fact the man page for
openssl-rehash(1ossl) seems to list as such in the name:

OPENSSL-REHASH(1ossl)               OpenSSL              OPENSSL-REHASH(1ossl)

NAME
     openssl-rehash, c_rehash - Create symbolic links to files named by the
     hash values


I've patched my local copy of create-cert to add a c_rehash() function
(provided 'openssl rehash' is available) immediately before the c_rehash
command check that resolves the issue on my end. Also verified that when
creating a cert it does successfully rehash the certs directory with this
function included. Adding here for possible inclusion to get rid of the
warning.

Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.