2.4. 创建 attestation 令牌 secret


为红帽构建的 Trustee 生成 attestation 令牌密钥。

流程

  1. 运行以下命令,生成名为 token.key 的专用 elliptic curve SSL 密钥:

    $ openssl ecparam -name prime256v1 -genkey -noout -out token.key
  2. 运行以下命令,从私有 SSL 密钥生成自签名 SSL/TLS 证书:

    $ openssl req -new -x509 -key token.key -out token.crt -days 365 \
      -subj "/CN=<custom_cn>/O=<custom_org>"
    • <custom_cn > : 指定通用名称。例如: kbs-trustee-operator-system。
    • <custom_org > : 指定您的机构名称。
  3. 从 trustee-operator-system 命名空间中的 SSL/TLS 密钥和证书创建 attestation-token secret:

    $ oc create secret generic attestation-token \
      --from-file=token.crt \
      --from-file=token.key \
      -n trustee-operator-system
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

关于红帽文档

Legal Notice

Theme

© 2026 Red Hat
返回顶部