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

阅读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

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值