GithubHelp home page GithubHelp logo

apim-end-to-end-encryption's Introduction

Azure API Management End-to-end encryption

Requirements

  • There's a requirement have TLS encryption with custom domains from the caller, through API management to the APIs
  • API Management deployed in internal mode
Left: http://gateway.company.com  Right: https://api.company.com

Azure Services

  • Azure API Management
  • Azure Private DNS
  • App Services

Paid certificates or Let's Encrypt free certificates

Steps:

  • Obtain your certificates or generate your certificates using let's encrypt
  • Deploy the certificate and update the portal and gateway domains in API Management
  • Deploy the root and intermediate certificates to API Management

Tip: How to get the root and intermedicate certificates for the backed authentication

  • Deploy the client certificates to the APIs
  • Configure the APIs using ssl.
    • If you were using App Services for example, make sure the use a custom domain
  • If you are working with internal services, make sure to configure DNS. You will need entries for the portal and gateway which is the same internal IP address for the API Management.

Self-signed certificates

Steps:

  • Generate a root CA
  • Generate a client certificates for portal, gateway and APIs
  • Deploy the certificate and update the portal and gateway domains
  • Deploy the self-signed root certificate API Management
  • Deploy the client certificates to the APIs
  • Configure the APIs using ssl
    • If you were using App Services for example, make sure the use a custom domain
  • If you are working with internal services, make sure to configure DNS. You will need entries for the portal and gateway which is the same internal IP address for the API Management.

Troubleshooting

  • DNS resolution
  • install the intermediate and root certificates
  • If using NSGs on the APIM subnet, ensure that port TCP port 443 is open

How it works

The client maching making the call the through API should have all the required certificates installed. Once the requests lands on API Management, it will forward the requests onto the target API over https. Encryption and decryption occers by using the root and intermediate certificates.

apim-end-to-end-encryption's People

Contributors

msalemor avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.