Data Domain:证书导入失败。使用了不受支持的算法。
Summary: 尝试在 DD 上导入证书时,由于用于生成证书的算法不受支持,导入失败。
Instructions
问题陈述:
sysadmin@DDhostname(active:1)# adminaccess certificate import host application all file DDhostname.p12
Enter password:
** Importing the certificate will restart the http/https services and currently active http/https user sessions will be terminated.
Do you want to import this certificate? (yes|no) [yes]: yes
**** Certificate import failed. Unsupported algorithm used.
Only "PBES2, PBKDF2, AES-256-CBC" (AES-256-CBC) encryption algorithm is supported for the PKCS12 file.
根本原因:
需要更安全算法的行为更改首先在 8.4 中添加,然后反向移植到 7.13.1.40 和 8.3.1.10。
摘自《8.4 安全配置指南》第 24 页:“
支持 PKCS12 和 PEM 格式。AES-256-CBC 是 PKCS12 文件唯一支持的加密算法。”
解决方法/注释:
通过运行以下 2 个命令,可以轻松将不合规的 PKCS12 密钥库文件转换为采用 AES-256-CBC 算法的合规密钥库
步骤 #1:将私钥和证书从不合规的 PKCS#12 密钥库文件导出为 PEM 格式:
openssl pkcs12 -in nonCompiantkeystore.p12 -nokeys -out cert.pem
openssl pkcs12 -in nonCompiantkeystore.p12 -nodes -nocerts -out key.pem
步骤 #2:将导出的密钥对文件转换为兼容的 PKCS#12 密钥库文件:
openssl pkcs12 -export -in cert.pem -inkey key.pem -name tomcat -out Compiantkeystore.p12 -macalg SHA256 -keypbe AES-256-CBC -certpbe AES-256-CBC -passout pass:DD_1234
步骤#3:(可选)验证转换后的文件算法:
openssl pkcs12 -info -in Compiantkeystore.p12 -noout
openssl pkcs12 -info -in ddv.p12 -noout
openssl pkcs12 -in ddv.p12 -clcerts -nokeys -out cert.pem
openssl pkcs12 -in ddv.p12 -cacerts -nokeys -out public.pem
openssl pkcs12 -in ddv.p12 -nocerts -out key.pem
openssl rsa -in key.pem -out dkey.pem
openssl pkcs12 -export -out ddvnew.p12 -keypbe AES-256-CBC -certpbe AES-256-CBC -certfile public.pem -inkey dkey.pem -in cert.pem