Created
August 29, 2019 09:43
-
-
Save robincher/9ab44ddd6ce83af978488f0034f07cfd to your computer and use it in GitHub Desktop.
Map ca certificate with consumer object
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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