HomeFreeBSD

certctl: factor out certname resolution

Description

certctl: factor out certname resolution

create_blacklisted() will identify a cert whether it's provided a path to
a cert or the hash.serial format that is shown by certctl list.

Factor this logic out into a resolve_certname() so that it may be reused
elsewhere.

Details

Provenance
kevansAuthored on Jan 9 2021, 4:34 AM
Parents
R10:b799d38a2ad1: certctl: replace hardcoded uses of /usr/local
Branches
Unknown
Tags
Unknown