Add multiple snis for the certificates
storehubdeploy opened this issue · comments
shbuild commented
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
Henrique Oliveira commented
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"]
}'