]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
certctl: factor out certname resolution
authorKyle Evans <kevans@FreeBSD.org>
Sat, 9 Jan 2021 04:34:44 +0000 (22:34 -0600)
committerKyle Evans <kevans@FreeBSD.org>
Sat, 9 Jan 2021 04:36:22 +0000 (22:36 -0600)
commit8c4094f38c7b0e95af91d92a563bfedc1249950d
treef847dc9b90347596be07b6d288d53ce081ceb1d8
parentb799d38a2ad10ec84c8ffa4a554a1816465c0d12
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.
usr.sbin/certctl/certctl.sh