Cloud0916 commented on issue #11249:
URL: https://github.com/apache/apisix/issues/11249#issuecomment-2126401844
it's ok to upload cert by apisix-admin api, for example:
[root@server1 ~]# CERT=$(awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}'
your_domain.pem)
[root@server1 ~]# KEY=$(awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}'
your_domain.key)
curl http://{Adress of apisix-admin}:9180/apisix/admin/ssls -X POST -d '{
"cert": "'"$CERT"'",
"key": "'"$KEY"'",
"snis": ["your.domain"]
}' -H 'X-API-KEY: {your api key}'
--
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]