RabbitMQ on Amazon MQ: Invalid SSL ARN
RabbitMQ on Amazon MQ will raise an INVALID_ARN_SSL critical action required code when one or more ARNs of CA certificate truststore for EXTERNAL auth_mechanism are invalid or inaccessible. This applies to ARNS specified in aws.arns.ssl_options.cacertfile or aws.arns.management.ssl.cacertfile, which must reference Amazon S3 or ACM PCA object containing the certificate.
A broker in RABBITMQ_INVALID_ARN_SSL quarantine cannot authenticate client certificates during mutual TLS handshakes because no valid truststore is configured. If EXTERNAL auth mechanism is the only configured authentication method, users will be unable to connect to the broker. Invalid ARNs can be caused by malformed ARN syntax, references to non-existent S3 objects, S3 objects located in a different AWS region than the broker, or insufficient s3:GetObject/acm-pca:GetCertificateAuthorityCertificate permissions in the IAM role.
Diagnosing and addressing RABBITMQ_INVALID_ARN_SSL
To diagnose and address the RABBITMQ_INVALID_ARN_SSL action required code, you must use Amazon CloudWatch Logs and the console.
To resolve the invalid SSL ARN issue
-
Navigate to Amazon CloudWatch Logs Insights and run the following query against your broker's log group
/aws/amazonmq/broker/<broker-id>/general:fields @timestamp, @message | sort @timestamp desc | filter @message like /error.*aws_arn_config/ | limit 10000 -
Look for error messages similar to:
[error] <0.209.0> aws_arn_config: {<<"could not resolve ARN 'arn:aws:acm-pca:xxxx' for configuration 'aws.arns.ssl_options.cacertfile', error: \"AWS service is unavailable\"">>,{error,"AWS service is unavailable"}} -
Check the S3/ACM-PCA Object and fix any issues such as:
Verify the secret exists in the same AWS region as the broker
Confirm the ARN syntax is correct
Ensure the IAM role has s3:GetObject/acm-pca:GetCertificateAuthorityCertificate permissions
-
Validate the fix using the ARN access validation API endpoint before updating the broker configuration.
-
Update the broker configuration and reboot the broker.