# Unable to add the server to the haproxy using runtime api

**URL:** <https://discourse.haproxy.org/t/unable-to-add-the-server-to-the-haproxy-using-runtime-api/8937>\
**Category:** Help!\
**Created:** [August 17, 2023, 2:54pm UTC](https://discourse.haproxy.org/t/unable-to-add-the-server-to-the-haproxy-using-runtime-api/8937 "2023-08-17T14:54:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phaneendra](https://avatars.discourse-cdn.com/v4/letter/p/4da419/32.png) [@Phaneendra](https://discourse.haproxy.org/u/Phaneendra)\
**Post date:** [August 17, 2023, 2:54pm UTC](https://discourse.haproxy.org/t/unable-to-add-the-server-to-the-haproxy-using-runtime-api/8937/1 "2023-08-17T14:54:46Z")

</div>

Hi,

When I tried to add a server to haproxy using runtime api I was getting ‘ca-file: unable to load ca-certificates.crt’ error .

I have tried to add the server to the haproxy using the below runtime api command.

**echo "add server backend-1/server-1 server1-ip:port check ssl ca-file ./ca-certificates.crt verify required verifyhost [server-1.com](http://server-1.com) " | socat stdio unix-connect:/var/run/admin.sock**

If anybody faced this issue previously and have resolved the issue, pls help me!! Thank you advance

The haproxy version is 2.6
