addding ssl certificate to local host api and allowing azure to access the api

we want to test api which gets an api call from azure gateway in development server (note:not in production server api is not deployed yet),so

  1. How can I add an SSL certificate to my development server?
  2. What steps should I take to allow Azure to access my API hosted on the development server?

The easiest way to do this, is by creating a ngrok tunnel to your machine.
It’s pretty straight forward, you first install ngrok.
Then from your machine you just need to tell ngrok which port it should forward connections:
ngrok http 8000

This will create a domain name, already encrypted with https, that you can use as the address for your API.

Oh, and don’t forget: this don’t replaces a correct deployment, it should only be used for development purposes.