zlzforever commented on issue #2476:
URL: 
https://github.com/apache/apisix-dashboard/issues/2476#issuecomment-1168344766

   > 
   
   Have no idea, right now my workaround is post it by mysql:
   
   `
       validity_end=$(date +%s --date="+90 day")
       openssl rsa -in /data/data/letsencrypt/live/xxx/privkey.pem -out 
/data/data/letsencrypt/live/xxx/cert.key 
       read -N 100000 cert </data/data/letsencrypt/live/xxx/fullchain.pem 
       read -N 100000 key </data/data/letsencrypt/live/xxx/cert.key
       body='{ "cert": "'$cert'", "key": "'$key'", "validity_end": 
'$validity_end', "snis": ["xxx.com", "*.xxx.com" ] }'
       curl http://127.0.0.1/apisix/admin/ssl -H "Content-Type: 
application/json" -H 'X-API-KEY:' -X POST -d "$body"
   `


-- 
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