The CreatorCon Call for Content is officially open! Get started here.

Decrypt PGP 2048 encrypted files in service now.

Anirudh Gupta
Kilo Expert

I have a requirement where I need to import an encrypted TEXT file from a location available in mid-server and bring the data into Service Now. What i think in theory is, we decrypt the file and process it to convert into a CSV file, and process this decrypted content (csv) using a import set/transform map to a custom table.

The encrypted file needs to use PGP 2048 decryption 

I know if the file encryption was not a requirement, I could create a Data Source to get the file from the SFTP server and process its contents via import set/transform map.

My question is, if there is away this could be accomplished in ServiceNow or if I will have to decrypt the file outside of the platform (all via servicenow scripts) and then retrieve its contents.

I have tried figuring out a solution on net but only thing is that, we need to import an external java script library in a script include and access this to decrypt the file that is store in the form of attachment in attachment table.

4 REPLIES 4

Community Alums
Not applicable

Hi 

Is there any update about this? Have you implemented it? 

I am looking for the solution , what we want to do is " Transfer encrypted file over the internet and then when it reaches a destination' it should get decrypted.

Servicenow should be able to do it for both inbound and outbound calls. ie to encrypt for outbounds and decrypt for inbound calls.

PGP encryption is our first choice

theBeastMaster
Mega Guru

Hi Anirudh,

 

Were you able to do this?

Yes, this was dealt by creating a custom openPGP jar file which gets called by a powershell script.

Hi Anirudh,

 

Could you please elaborate with step by step process
What are pre-requisites required in order to achieve this scenario


How did you achieve this tricky requirement?

How did you created openPGP jar file and where did you stored it?


How did you decrypt an encrypted file and attached it to the specific destination data source/import set into ServiceNow?  

 

Thanks in advance for your response, have a nice day.