Data Domain: Sertifika içe aktarma başarısız oldu. Desteklenmeyen algoritma kullanılmış.
Summary: Bir DD'de sertifikayı içe aktarmaya çalışırken, sertifikayı oluşturmak için kullanılan desteklenmeyen algoritma nedeniyle başarısız olur.
Instructions
Sorun Tanımı
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.
Temel Neden:
Daha güvenli algoritmalar gerektiren davranış değişikliği ilk olarak 8.4 te eklendi ve ardından 7.13.1.40 ve 8.3.1.10'a taşındı.
8.4 Güvenlik Yapılandırma Rehberi sayfa 24'ten:
"PKCS12 ve PEM biçimleri desteklenir. AES-256-CBC, PKCS12 dosyaları için desteklenen tek şifreleme algoritmasıdır."
GEÇICI ÇÖZÜM / NOTLAR:
uyumlu olmayan PKCS12 anahtar deposu dosyası, aşağıdaki 2 komut çalıştırılarak AES-256-CBC algoritmasıyla kolayca uyumlu bir anahtar deposuna dönüştürülebilir
Adım #1: Özel anahtarı ve sertifikayı uyumlu olmayan PKCS#12 anahtar deposu dosyasından PEM biçiminde dışa aktarın:
openssl pkcs12 -in nonCompiantkeystore.p12 -nokeys -out cert.pem
openssl pkcs12 -in nonCompiantkeystore.p12 -nodes -nocerts -out key.pem
Adım #2: Dışa aktarılan anahtar çifti dosyalarını uyumlu bir PKCS#12 anahtar deposu dosyasına dönüştürün:
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
Adım #3: (İsteğe bağlı) Dönüştürülen dosya algoritmasını doğrulayın:
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