Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Deploy Apigee Proxy api locally on VS code - Apigee Emulator over https instead of default http

On deploying Apigee proxy locally on VS Code - Apigee Emulator, Api gets deployed and it is accessible with http url like : http://localhost:8998/<api>/<path>.

Is there any option that the same api can be exposed in secured manner and accessible via url like url like : https://localhost:8998/<api>/<path>.

 

0 1 238
1 REPLY 1

Hi @rshekhar55 

Thanks for reaching out, for this you will need to provision a certificate. There are two ways to do this this

  1. A quick option could be using ngrok. In this option you will need to download the correct ngork agent for your system version. Then unzip and run ngork.exe . And then only listen on an HTTPS tunnel endpoint and  run the following ngrok http -bind-tls=true site.dev:80 or whatever port you need https to be installed. You can find more details of this process here.
  2. Ideally for HTTPS, you need to generate a certificate that is not exposed to the emulator. For instance, generate a self-signed SSL certificate and then add it to the trusted certificate. For these option you can find more details here and on this blog