How do you store PGP encryption keys in ServiceNow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 06:26 AM - edited 02-27-2024 06:27 AM
The main requirement for us is to track the expiration of these keys to facilitate notifications to the security teams. And possibly use this CI on ITSM tickets.
We are not storing the actual key, just a representation of it. Is there a CMDB CI class for storing PGP Keys in SN?
Just looking for a proper ootb class so that we can reduce customization.
If the class will be custom, under what parent class should I create this child class?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 07:49 AM
Hi @bill_dev ,
There is no OOB class available in servicenow as per my Understanding, Also you need to create the custom class for that and based on your required your need to choose the parent class, Also you create under the CMDB_CI directly that class.
You can create powershell script to decrypt PGP file and then call this powershell script using service now orchestration activity.
Write a custom script to store any type of incoming data in the import set table.
You can find powershell script to decrypt PGP file below
https://4sysops.com/archives/encrypt-and-decrypt-files-with-powershell-and-pgp/
Please appreciate the efforts of community contributors by marking appropriate response as Mark my Answer Helpful or Accept Solution this may help other community users to follow correct solution in future.
Thanks
AJ
Linkedin Profile:- https://www.linkedin.com/in/ajay-kumar-66a91385/
ServiceNow Community Rising Star 2024