pantsel / konga

More than just another GUI to Kong Admin API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add multiple snis for the certificates

storehubdeploy opened this issue · comments

Hey guys,I was trying to call the admin api to add certification on kong
here is my command:

curl -k -X POST http://..../certificates -F "cert=$(cat fullchain.pem)" -F "key=$(cat privkey.pem)" -F snis[]=...

I wondered that if I want to add multiple snis for the certificate

how can I make that

i do with like this:

curl -X POST http://localhost:8001/certificates --header 'Content-Type: application/json' \
--data-raw '{
    "cert": "-----BEGIN CERTIFICATE-----...-----END CERTIFICATE-----",
    "key": "-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----",
    "snis": ["*.domain.com.br","*.otherdomain.com.br"]
}'