Skip to content

Instantly share code, notes, and snippets.

@robincher
Created August 29, 2019 09:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robincher/9ab44ddd6ce83af978488f0034f07cfd to your computer and use it in GitHub Desktop.
Save robincher/9ab44ddd6ce83af978488f0034f07cfd to your computer and use it in GitHub Desktop.
Map ca certificate with consumer object
#!/bin/bash
# Create manual mappings between certificate and Consumer objec
curl -X POST -H 'Kong-Admin-Token:xxxxxx' http://localhost:8001/Scratch/consumers/helios/mtls-auth -d 'subject_name=helios.gemsapi.io'
# Test route with MTLS and Basic Auth Plugin enabled
curl -kv -H 'Authorization: Bearer Basic xxxxxxx' --key helios.key --cert helios.crt https://localhost:8443/mockbin/request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment