certs: simplify empty certs creation in certs/Makefile
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 18 Feb 2022 04:46:34 +0000 (13:46 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 2 Mar 2022 23:18:20 +0000 (08:18 +0900)
commitf44b645fe0070c0f1ac34a358252a7123c56e709
treee604a43dcda8c640fbb5ad5b2c77a9f64a4fc88c
parent6ce019f73d52513239314e75376a5ca622aa3632
certs: simplify empty certs creation in certs/Makefile

To create an empty cert file, we need to pass "" to the extract-cert
tool, which is common for all the three call-sites of cmd_extract_certs.

Factor out the logic into extract-cert-in.

One exceptional case is PKCS#11 case, where we override extract-cert-in
with the URI.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <n.schier@avm.de>
certs/Makefile