kingluo opened a new issue, #9229:
URL: https://github.com/apache/apisix/issues/9229

   ### 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.
   
   ```bash
   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"
       ]
   }'
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to