Skip to main content

🧠 AWS ACM RSA Certificate key length is less than 2048 bits - prod.logic.yaml 🟒

Flags​

Input Type​

TypeAPI NameExtractsExtract FilesLogic Files
πŸ”’πŸ“• AWS ACM CertificateCA10__CaAwsAcmCertificate__c514

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-05-10T12:01:26.886322858Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ extract('CA10__status__c') != 'ISSUED'βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ extract('CA10__keyAlgorithm__c') == 'RSA-1024'βœ”οΈ null
🟒test4βœ”οΈ 300βœ”οΈ otherwiseβœ”οΈ null

Generation​

FileMD5
Open/ce/ca/aws/acm/rsa-certificate-key-length-less-than-2048-bits/policy.yamlD5787C55F480B64458193A6EA141EBE7
Open/ce/ca/aws/acm/rsa-certificate-key-length-less-than-2048-bits/prod.logic.yamlB9EC0531D9631D020381F5A8B0339CA9
Open/ce/ca/aws/acm/rsa-certificate-key-length-less-than-2048-bits/test-data.jsonBD258A117D8C1A80DF8120F4347273F7
Open/types/CA10__CaAwsAcmCertificate__c/object.extracts.yamlD20EE095842A506CDEF3AC47E90A5A3B

Generate FULL script​

java -jar repo-manager.jar policies generate FULL /ce/ca/aws/acm/rsa-certificate-key-length-less-than-2048-bits/prod.logic.yaml

Generate DEBUG script​

java -jar repo-manager.jar policies generate DEBUG /ce/ca/aws/acm/rsa-certificate-key-length-less-than-2048-bits/prod.logic.yaml

Generate CAPTURE_TEST_DATA script​

java -jar repo-manager.jar policies generate CAPTURE_TEST_DATA /ce/ca/aws/acm/rsa-certificate-key-length-less-than-2048-bits/prod.logic.yaml

Generate TESTS script​

java -jar repo-manager.jar policies generate TESTS /ce/ca/aws/acm/rsa-certificate-key-length-less-than-2048-bits/prod.logic.yaml

Execute tests​

java -jar repo-manager.jar policies test /ce/ca/aws/acm/rsa-certificate-key-length-less-than-2048-bits/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsAcmCertificate__c"
testData:
- file: test-data.json
importExtracts:
- file: /types/CA10__CaAwsAcmCertificate__c/object.extracts.yaml
conditions:
- status: "INAPPLICABLE"
currentStateMessage: "The certificate is not active."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__status__c"
right:
TEXT: "ISSUED"
- status: "INCOMPLIANT"
currentStateMessage: "The certificate key length is smaller than 2,048 bits."
remediationMessage: "Consider deleting the certificate with a key length smaller than 2,048 bits."
check:
IS_EQUAL:
left:
EXTRACT: "CA10__keyAlgorithm__c"
right:
TEXT: "RSA-1024"
otherwise:
status: "COMPLIANT"
currentStateMessage: "The certificate uses a key length of at least 2,048 bits."