本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
使用 CloudHSM CLI 获取 mTLS 强制执行级别
使用 CloudHSM CLI 中的cluster mtls get-enforcement命令来获取客户端和之间使用双向 TLS 的强制级别。 AWS CloudHSM
用户类型
以下用户均可运行此命令。
-
Admin
-
加密用户 (CUs)
要求
-
要运行此命令,您必须以管理员用户或加密用户(CUs)的身份登录。
语法
aws-cloudhsm >
help cluster mtls get-enforcement
Get the status of mtls enforcement in the cluster Usage: cluster mtls get-enforcement [OPTIONS] Options: --cluster-id
<CLUSTER_ID>
Unique Id to choose which of the clusters in the config file to run the operation against. If not provided, will fall back to the value provided when interactive mode was started, or error -h, --help Print help
示例
在以下示例中,此命令列出了 AWS CloudHSM的 mtls 强制执行级别。
aws-cloudhsm >
cluster mtls get-enforcement
{ "error_code": 0, "data": { "mtls-enforcement-level": "none" } }
参数
<CLUSTER_ID>
-
要运行此操作的集群的 ID。
必需:如果已配置多个集群。