Skip to content

docs: use bash to configure ssl resource #9229

@kingluo

Description

@kingluo

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"
    ]
}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    docDocumentation thingsgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions