{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":29426,"path":"it-operations-management/discovery/aws-certificate-manager-discovery-pattern.md","title":"AWS Certificate Manager discovery","bundle":null,"doc_type":null,"release":"australia","body":"\n# AWS Certificate Manager discovery\n\nCloud Discovery uses Patterns to discover certificate data that the Amazon AWS Cloud Certificate Manager \\(ACM\\) manages. Discovering this data requires installing and updating Discovery and Service Mapping Patterns and Certificate Inventory and Management.\n\n## Request apps on the Store\n\nVisit the [ServiceNow Store](https://store.servicenow.com/sn_appstore_store.do#!/store/home) to view all the available apps, and for information about submitting requests to the store. For cumulative release notes information for all released apps, see the [ServiceNow Store version history release notes](https://www.servicenow.com/docs/r/store-release-notes/sn-store-release-notes.html).\n\n## Prerequisites\n\n-   **Verify the configuration of an AWS account**\n\n    For more information, see [Discovery for cloud environment](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/discovery/cloud-discovery-wizard.md)\n\n-   **Verify the installation of the plugins**\n\n    Certificate Inventory and Management \\(sn\\_disco\\_certmgmt\\) at least 3.4.0\n\n    Discovery and Service Mapping Patterns \\(sn\\_itom\\_pattern\\) at least 1.12.0\n\n-   **Verify that Cloud Discovery has permissions to discover AWS**\n\n    Run the following commands with AWS CLI to check the permissions and policies attached to your active IAM role:\n\n    -   List Certificates\n\n        `AWS_PAGER='' aws acm list-certificates --region <region>`\n\n    -   Describe Certificates\n\n        `AWS_PAGER='' awsacm describe-certificate --certificate-arnarn:aws:acm:<region>:<accout_id>:certificate/<certificate_id>`\n\n    -   Get Certificates\n\n        `AWS_PAGER='' awsacm get-certificate --certificate-arnarn:aws:acm:<region>:<account_id>:certificate/<certificate_id>`\n\n    -   Get tags\n\n        `AWS_PAGER='' awsresourcegroupstaggingapi get-resources --tags-per-page 100 --resource-type-filters 'acm:certificate'`\n\n-   **Set the configuration of the system property**\n\n    When the system property **sn\\_itom\\_pattern.issuer\\_certificate\\_search\\_by\\_idn** is set to **false**, Discovery uses the certificate fingerprints to find issuers and root issuers.\n\n-   **Verify the MID Server requirements**\n\n    The MID Server must have either ALL capability or AWS capability.\n\n-   **Verify the configuration of Cloud Discovery schedule**\n\n    For more information, see [Create a discovery schedule in Cloud Discovery Workspace](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/discovery/cloud-operations-disco-create-schedule.md)\n\n\n## Verify the REST API permissions\n\nDownload the [Cloud Discovery patterns spreadsheet](https://downloads.docs.servicenow.com/resource/enus/api/servicenow-discovery-patterns-api-details.xlsx) so you can grant user permissions required for running the Discovery patterns. In addition to permissions, the spreadsheet also includes useful information such as pattern names, types, CI Classes, and links to vendor documentation. New patterns are available quarterly, so check periodically to be sure you have the latest version of the spreadsheet.\n\n## Data collected by Discovery during horizontal discovery\n\nThe **Amazon AWS - Certificates Manager** pattern and **Amazon AWS - Collect Certificates Tags** shared library support the discovery of the following table and fields.\n\n<table id=\"table_w2j_l53_2nb\"><thead><tr><th>\n\nField\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td class=\"sub-head\" colspan=\"2\">\n\nUnique Certificates \\[cmdb\\_ci\\_certificate\\] ​\n\n</td></tr><tr><td>\n\nName\n\n</td><td>\n\nThe host name/domain associated with the certificate.\n\n For example, *\\*.service-now.com*\n\n</td></tr><tr><td>\n\nFingerprint\n\n</td><td>\n\nThe hash value of the certificate.\n\n For example, *d708c8583c78c176d5df1a4f01aac746294 e390a03038f280b0d8f5efbc8a0f*\n\n</td></tr><tr><td>\n\nFingerprint algorithm\n\n</td><td>\n\nThe algorithm that's being used to hash the certificate. For example, Discovery calculates fingerprints by the SHA-256 algorithm, so the value that is populated is: *SHA-256*\n\n</td></tr><tr><td>\n\nSerial Number\n\n</td><td>\n\nThe serial number of the certificate. For example, *70 d8 c9 52 77 1c 2d 54 97 00 0e 21 05 84 dd 76 b5 e8 c1 73*\n\n</td></tr><tr><td>\n\nSubject common name\n\n</td><td>\n\nThe host name/domain associated with the certificate. For example, *\\*.service-now.com*\n\n</td></tr><tr><td>\n\nSubject distinguished name\n\n</td><td>\n\nThe distinguished name of the entity that the certificate is issued to.​\n\n The subject distinguished name consists of the following\n\n-   Common name \\(CN\\).\n-   Organization \\(O\\)- The organization that owns the domain that the certificate is issued to.\n-   organizational unit \\(OU\\)- The organizational unit that owns the domain that the certificate is issued to.\n\n</td></tr><tr><td>\n\nIssuer common name\n\n</td><td>\n\nThe common name of the certificate issuer. For example, Entrust Certification Authority.\n\n</td></tr><tr><td>\n\nIssuer distinguished name\n\n</td><td>\n\nThe distinguished name of the certificate issuer.\n\n The issuer distinguished name consists of the following\n\n-   Common Name \\(CN\\)- the authority that issued the certificate. For example, *Entrust Certification Authority*.\n-   Organization \\(O\\)- The organization that issued the certificate. For example, *\"Entrust\", Inc*.\n-   Organizational Unit \\(OU\\)- The unit that has the legal rights to issue the certificate.\n\n</td></tr><tr><td>\n\nRenewal tracking\n\n</td><td>\n\nIndicates whether to create any priority 1 or priority 3 tasks for the expiring certificates.\n\n Discovery sets **Renewal tracking** to *priority3* when the system property *glide.discovery.certs.enable\\_renewal\\_task\\_creation\\_for\\_discovered\\_certificates* is set to **true**.\n\n</td></tr><tr><td>\n\nValid From\n\n</td><td>\n\nThe certificate is valid from this date \\(UTC\\). For example, *2023-09-25 10:43:03*\n\n</td></tr><tr><td>\n\nValid To\n\n</td><td>\n\nThe expiry date of the certificate \\(UTC\\). For example, 2024-09-24 10:43:03\n\n</td></tr><tr><td>\n\nSubject organization\n\n</td><td>\n\nThe organization \\(O\\) that the certificate is issued to.\n\n</td></tr><tr><td>\n\nSubject organizational unit\n\n</td><td>\n\nThe organizational unit \\(OU\\) that the certificate is issued to.\n\n</td></tr><tr><td>\n\nSubject country\n\n</td><td>\n\nThe country \\(C\\) of the organization that the certificate is issued to. Populated in a two-letter country code.\n\n</td></tr><tr><td>\n\nSubject state\n\n</td><td>\n\nThe region, state \\(ST\\), or province of the organization that the certificate is issued to. Populated with two-letter code.\n\n</td></tr><tr><td>\n\nSubject locality\n\n</td><td>\n\nThe city, location \\(L\\) of the organization that the certificate is issued to.\n\n</td></tr><tr><td>\n\nSubject email\n\n</td><td>\n\nThe email address of the organization that the certificate is issued to.\n\n</td></tr><tr><td>\n\nIssuer\n\n</td><td>\n\nA reference to the entity that signed and issued the certificate. The reference is available if the issued certificate is a part of the same payload.\n\n</td></tr><tr><td>\n\nRoot Issuer\n\n</td><td>\n\nA reference to the root certificate. The reference is available if the issued certificate is a part of the same payload.\n\n</td></tr><tr><td>\n\nSubject alternative name\n\n</td><td>\n\nThe name of the certificate domain record.\n\n</td></tr></tbody>\n</table>## CI relationships\n\nThe **Amazon AWS - Certificates Manager** pattern and **Amazon AWS - Collect Certificates Tags** shared library support the discovery of the following relationships:\n\n|CI|Relationship|CI|\n|---|------------|---|\n|Unique Certificate​ \\[cmdb\\_ci\\_certificate\\]|Hosts::Hosted on|AWS Datacenter​ \\[cmdb\\_ci\\_aws\\_datacenter\\]|\n|Unique Certificate ​\\[cmdb\\_ci\\_certificate\\]​|Hosts::Hosted on|Cloud Service Account​ \\[cmdb\\_ci\\_cloud\\_service\\_account\\]​|\n|Key Value​ \\[cmdb\\_key\\_value\\]​|Reference​|Unique Certificate​ \\[cmdb\\_ci\\_certificate\\]​|\n\n**Parent Topic:**[Certificate Inventory and Management patterns](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/discovery/cert-invt-mgmt-patterns.md)\n\n"}}