wangchao732 commented on issue #11249:
URL: https://github.com/apache/apisix/issues/11249#issuecomment-2126429671

   > 可以通过apisix-admin api上传证书,例如:[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}'
   
   yes,Through apisix /apisix/admin/ssls put certificate successfully, through 
the dashbord still does not work, apisix version 3.9.0, compared the results 
found that apisix dashbord upload field contains:
   
         {
                        "createdIndex": 314,
                        "key": "/apisix/ssls/514925433557353103",
                        "modifiedIndex": 314,
                        "value": {
                                "validity_start": 1700092800,
                                "id": "514925433557353103",
                                "status": 1,
                                "update_time": 1716449075,
                                "snis": [
                                        "*.xxx.com",
                                        "xxx.com"
                                ],
                                "cert": "",
                                "create_time": 1716449075,
                                "validity_end": 1731715199
                        }
                }
   
   but, api  hasn't "validity_start"
   
   {
        "list": [
                {
                        "createdIndex": 313,
                        "key": "/apisix/ssls/00000000000000000312",
                        "modifiedIndex": 313,
                        "value": {
                                "create_time": 1716448592,
                                "update_time": 1716448592,
                                "snis": [
                                        "*.bcnyyun.com"
                                ],
                                "type": "server",
                                "id": "00000000000000000312",
                                "key": "",
                                "status": 1
                        }
                }
   }


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