Data Domain: Zertifikatimport fehlgeschlagen. Es wird ein nicht unterstützter Algorithmus verwendet.
Summary: Beim Versuch, ein Zertifikat auf eine DD zu importieren, schlägt dies aufgrund eines nicht unterstützten Algorithmus fehl, der zum Erzeugen des Zertifikats verwendet wird.
Instructions
Problemanzeige
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.
Ursache:
Die Verhaltensänderung, sodass sicherere Algorithmen erforderlich sind, wurde erstmals in 8.4 hinzugefügt und dann auf 7.13.1.40 und 8.3.1.10 zurückportiert.
Auf Seite 24 des Sicherheitskonfigurationshandbuchs 8.4:
PKCS12- und PEM-Formate werden unterstützt. AES-256-CBC ist der einzige unterstützte Verschlüsselungsalgorithmus für PKCS12-Dateien."
WORKAROUND/HINWEISE:
Die nicht konforme PKCS12-Keystore-Datei kann einfach in einen konformen Keystore mit dem AES-256-CBC-Algorithmus konvertiert werden, indem die folgenden 2 Befehle ausgeführt werden
Schritt #1: Exportieren Sie den privaten Schlüssel und das Zertifikat aus einer nicht konformen PKCS # 12-Keystore-Datei in das PEM-Format:
openssl pkcs12 -in nonCompiantkeystore.p12 -nokeys -out cert.pem
openssl pkcs12 -in nonCompiantkeystore.p12 -nodes -nocerts -out key.pem
Schritt #2: Konvertieren Sie die exportierten Schlüsselpaardateien in eine kompatible PKCS # 12-Keystore-Datei:
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
Schritt #3: (Optional) Validieren Sie den konvertierten Dateialgorithmus:
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