-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
Description
Current State
https://apisix.apache.org/docs/apisix/certificate/#single-sni
It uses a python script to upload cert and key files in the ssl configuration.
But this script is not user-friendly, the user needs to install python and requests package.
Desired State
We could use bash builtin syntax to configure the ssl resource.
curl http://127.0.0.1:9180/apisix/admin/ssls/1 \
-H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
"cert": "'"$(<server.crt)"'",
"key": "'"$(<server.key)"'",
"snis": [
"*.apisix.dev"
]
}'kayx23 and monkeyDluffy6017