1.安装源:
https://pkg.cfssl.org/
2.安装命令:
$ curl -s -L -o /bin/cfssl https://pkg.cfssl.org/R1.2/cfssl_linux-amd64
$ curl -s -L -o /bin/cfssljson https://pkg.cfssl.org/R1.2/cfssljson_linux-amd64
$ curl -s -L -o /bin/cfssl-certinfo https://pkg.cfssl.org/R1.2/cfssl-certinfo_linux-amd64
$ chmod +x /bin/cfssl*
3.检查是否安装成功
$ cfssl -h
结果显示
Usage:
Available commands:
bundle
ocspsign
selfsign
certinfo
version
gencrl
scan
info
revoke
sign
ocspserve
print-defaults
serve
genkey
gencert
ocspdump
ocsprefresh
Top-level flags:
-allow_verification_with_non_compliant_keys
Allow a SignatureVerifier to use keys which are