faltakam opened a new issue, #10600:
URL: https://github.com/apache/apisix/issues/10600

   ### Description
   
   I'm trying to add ssl certificate with intermediate ca. I'm using admin api 
to do it. 
   I bundled cert.crt and ca.crt to fullchain.crt:
   ```
   cat cert.crt > fullchain.crt
   cat ca.crt >> fullchain.crt
   ```
   
   and then sending this request:
   curl http://127.0.0.1:80/apisix/admin/ssl/1 -H 'X-API-KEY: apikey' -X PUT -d 
'
   {
        "cert" : "'"$(cat fullchain.crt)"'",
        "key": "'"$(cat cert.key)"'",
        "snis": ["hostname", "www.hostname"]
   }'
   
   the request is successful and i can see both certificate in the response, 
but when i try to verify certificates using:
   ```
   openssl s_client -connect hostname:443
   ```
   i only get the ssl certificate without the provided intermediate ca. 
   How can i include the intermediate ca so the client will be able to access 
it? What am i doing wrong?
   
   Thanks
   
   
   
   
   
   ### Environment
   
   - APISIX version (run `apisix version`): 2.15.0
   - Operating system (run `uname -a`): Linux *** 4.18.0-513.5.1.el8_9.x86_64 
#1 SMP Fri Sep 29 05:21:10 EDT 2023 x86_64 x86_64 x86_64 GNU/Linux
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):  
openresty/1.21.4.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