cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Nodejs Middleware update endpoints to https

Former Member
0 Likes
344

Context:

I've built several integrations between various procurement platforms (Coupa, SAP Ariba, OSN, et al.) and my company's Netsuite account (cloud-based ERP system). Because Netsuite requires very specific authentication headers, I am unable to integrate these platforms directly. Instead, I built a middelware app in Nodejs (hosted on an AWS EC2 windows instance) to do two things:

  1. configure the headers properly
  2. convert cXML into JSON for easier handling on the Netsuite side

Problem: the inbound endpoints this middleware app uses are plain old http; formatted as such:

http://[ec2 public dns ipv4 address]:8080/example-company

I have two goals for these endpoints:

  • http --> https
  • use a regular domain name where the port is hidden (e.g. integrations.mycompany.com/example-client)

Caveat: I'm not sure how many of these clients will respond in a timely fashion once I update the endpoints. In the meantime, if possible, I'd like to redirect their existing calls.

Questions:

  • Is it possible to redirect the existing calls to an https version of my middleware app?
  • Would it be pointless to do so as the original calls were http?
  • Any tips on getting SSL certs setup on an EC2?
  • Should I forget all of this and rebuild the integration using API Gateway and Lambda?

If it's not obvious I've very little experience on the server side of things.

Know someone who can answer?

Accepted Solutions (0)

Answers (0)