How do we include an RSA key / AES256 encryption with a REST API Post call?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2019 04:21 AM
So, we use a REST API call to create tickets with one of our vendors and they use one to send us back updates to said tickets but they need us to use an RSA key in the API. I can't find much info on using an RSA key and my keyword searches on RSA seem to send me towards edge encryptions and other areas rather then REST calls.
They want to use AES256 encryption
Has anyone already done this. Is it as simple as implementing something this this::
var restMessage = new sn_ws.RESTMessageV2();
restMessage.setBasicAuth(gs.getProperty('thousandeyes.user'), gs.getProperty('thousandeyes.pass'));
restMessage.setHttpMethod("get");
Any help will be useful atm.
- Labels:
-
Integrations
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2019 06:12 AM
Did you look at encryption contexts?
https://docs.servicenow.com/bundle/london-platform-administration/page/administer/encryption/task/t_EncryptionContextSetup.html
Type of encryption used to encrypt your data:
- AES 128-bit: Advanced Encryption Standard
- AES 256-bit: Advanced Encryption Standard using 256-bit encryption
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2019 07:53 AM
Thanks for the link but i can't see this working with the 3rd party vendor though sadly. it's the actual API message that needs the encryption adding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2019 05:10 AM
Hi Dave,
I am also facing the similar requirement.
Did you crack this isssue? How do we encrypt any string using RSA public/private key
thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2019 05:15 AM
Hi
TBH the work has been shelved as we may not be working with the vendor in the future so till that is sorted it all on hold.
I have got this info though that may help you, links regarding Encryption Scripting:
- https://docs.servicenow.com/bundle/helsinki-platform-administration/page/script/server-scripting/con...
- https://community.servicenow.com/community?id=community_question&sys_id=18ea0f6ddb5cdbc01dcaf3231f96...
- https://docs.servicenow.com/bundle/jakarta-platform-administration/page/script/server-scripting/conc...
- https://docs.servicenow.com/bundle/jakarta-platform-administration/page/script/server-scripting/conc...