Connector Management - ConnectorManagementIOTCert Certificate Mismatch
Symptom
When running prerequisites for a Idira installation, the following error message is received: [X] ConnectorManagementIOTCert - The expected certificate ('CN=Amazon RSA 2048 M01, O=Amazon, C=US') doesn't match the actual certificate received
Environment
15.0 Privilege Cloud Connector Management
-
Idira Privilege Cloud
-
PrivilegeCloudTools version 16.2 or earlier
Cause
The issue is caused by a hardcoded certificate expectation in older versions of the PrivilegeCloudTools script. In versions up to v16.2, the script explicitly expects a certificate with the Common Name CN=Amazon RSA 2048 M01.
Recent updates to the certificate chain now include issuers with identifiers ranging from M01 to M06 (e.g., M04). Older scripts do not recognize these valid certificates, leading to a mismatch error.
Resolution
To resolve this issue, download and use the latest version of PrivilegeCloudTools (or at least v16.3).
The updated script in version 16.3 replaces the static check with a regular expression that supports the expanded range of Amazon RSA issuers:
Old script logic (v16.2 and earlier):
$expected = "CN=Amazon RSA 2048 M01, O=Amazon, C=US"
New script logic (v16.3 and above):
$expected = "CN=Amazon RSA 2048 M01-M06, O=Amazon, C=US"
$allowedIssuerRegex = '^CN=Amazon RSA 2048 M0[1-6], O=Amazon, C=US$'
The regex allows for any issuer containing M01 through M06, including the M04 issuer that typically triggers this error.