Unable to install CA certificate. ERROR "The common name(CN) extracted from the certificate is invalid"
Applies to
ONTAP 9
Issue
CA certificate installation fails with following error
cluster2::*> certificate install -type server-ca -vserver svm1
(security certificate install)
Please enter Certificate: Press <Enter> when done
-----BEGIN CERTIFICATE-----
MIIF/TCCA+WgAwIBAgIDAMvuMA0GCSqGSIb3DQEBCwUAME8xTTBLBgNVBAMMRFB1
cHBldCBDQSBnZW5lcmF0ZWQgb24gcHVwcGV0Y2EuYXJtLmNvbSBhdCAyMDE0LTEw
LTIwIDEyOjQzOjI5ICswMTAwMB4XDTE5MDgxMzE1MDYxMloXDTM0MDgxMDE1MDYx
MlowTzFNMEsGA1UEAwxEUHVwcGV0IENBIGdlbmVyYXRlZCBvbiBwdXBwZXRjYS5h
**************Lines Removed****************************************
ipLSqdiWYiGnGq9Cx+hTLcxccxAaE3cmT0mpIjk+W39DE8lIR5etA3WTy0V/9VIg
lU1tWQgyKGhORmGAnUP1IRcOuXu0XMGGcAYVD1WJr73YjkaMboZCNZw6PPtUV+p1
Ivsz4gKxS9UwWFgQ4Ogi3JTXg7P0gAaPamfBDBwrvhQi1gCXbDXqFiSm5jJNi62l
GEI4sQGajvyT8qdb62h7uUgE5GQqX3lIfoAMqfi0Q0m0znnKBmAStHNRChqhbW53
WVIOeKS5HoCfH4dy1V0acP3NmEZ1YAjByQReYJkSvvpLUAyU8Tngy02e3dKTmZ2f
Yw==
-----END CERTIFICATE-----
Error: command failed: The common name(CN) extracted from the certificate is invalid.
cluster2::*>