简体   繁体   English

如何将证书 (.crt) 文件导入 AWS CloudHSM 平台

[英]How to import certificate (.crt) file into AWS CloudHSM Platform

I have read documentation in AWS CloudHSM.我已阅读 AWS CloudHSM 中的文档。

I tried to import certificate using command below我尝试使用下面的命令导入证书

pkcs11-tool --module /opt/cloudhsm/lib/libcloudhsm_pkcs11.so -l --pin <my_pin> --write-object my_self_signed_cert.der --type cert --id 123

I got output我得到了输出

SDK Version: 2.03
Using slot 0 with a present token (0x1)

C_CreateObject failed with error CKR_TEMPLATE_INCOMPLETE : 0x000000d0
error: PKCS11 function C_CreateObject failed: rv = CKR_TEMPLATE_INCOMPLETE (0xd0)

Aborting.

Has anyone know how to fix this problem?有谁知道如何解决这个问题?

Thanks in advance for your help.在此先感谢您的帮助。

AWS CloudHSM does not support importing certificate as of now. AWS CloudHSM 目前不支持导入证书。 It only allows importing keys.它只允许导入密钥。 For importing keys in AWS CloudHSM you should use the tool provided by AWS CloudHSM only.要在 AWS CloudHSM 中导入密钥,您应该仅使用 AWS CloudHSM 提供的工具。 The link for the same is https://docs.aws.amazon.com/cloudhsm/latest/userguide/manage-keys.html .相同的链接是https://docs.aws.amazon.com/cloudhsm/latest/userguide/manage-keys.html Follow all the steps mentioned in the official documentation before importing keys.在导入密钥之前,请按照官方文档中提到的所有步骤进行操作。 You have to do all the setup and configuration to get access to your AWS CloudHSM.您必须完成所有设置和配置才能访问您的 AWS CloudHSM。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM