kubenetes ca认证过程中cfssljson -bare的含义

来源:互联网 发布:免费即时通讯软件 编辑:程序博客网 时间:2024/06/07 23:03

阅读Kubernetes安装之证书验证 - Kubernetes中文社区 - CSDN博客 一文中,cfssljson工具有个参数-bare

Usage of cfssljson:  -bare        the response from CFSSL is not wrapped in the API standard response        CFSSL的响应没有包装在API标准响应中  -f string        JSON input (default "-")  -stdout        output the response instead of saving to a file

并不理解CFSSL的响应没有包装在API标准响应中这个解释的含义。

查找Creating a new CSR · cloudflare/cfssl Wiki 文章

cfssl genkey csr.json | cfssljson -bare certificate

curl -X POST -H “Content-Type: application/json” -d @csr.json \
http://127.0.0.1:8888/api/v1/cfssl/newkey | cfssljson certificate

对比一下,命令行方式执行cfssljson -bare,curl POST方式则使用cfssljson