# AXAPI v3.0: Upload ssl-cert and ssl-key

**URL:** <https://community.a10networks.com/t/axapi-v3-0-upload-ssl-cert-and-ssl-key/438>\
**Category:** System\
**Tags:** axapi\
**Created:** [March 28, 2017, 9:41am UTC](https://community.a10networks.com/t/axapi-v3-0-upload-ssl-cert-and-ssl-key/438 "2017-03-28T09:41:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsaldsieder](https://avatars.discourse-cdn.com/v4/letter/t/2bfe46/32.png) [@tsaldsieder](https://community.a10networks.com/u/tsaldsieder)\
**Post date:** [March 28, 2017, 9:41am UTC](https://community.a10networks.com/t/axapi-v3-0-upload-ssl-cert-and-ssl-key/438/1 "2017-03-28T09:41:17Z")

</div>

Hi everyone, I hope someone has played around with the new API and tried to upload a ssl certificate and key. I used the following Post request via self-written perl code:

```auto
POST https://test-lb1a.boreus.de/axapi/v3/file/ssl-cert
Authorization: A10 e12409be89bd30926fceea3c52d6c3
Content-Length: 2777
Content-Type: multipart/form-data; boundary=xYzZY

--xYzZY
Content-Disposition: form-data; name="json"; filename="json"
Content-Type: application/json

{ "ssl-cert": { "file": "wildcard.boreus.de.2016", "file-handle": "file", "action": "import" } }
--xYzZY
Content-Disposition: form-data; name="file"; filename="file"
Content-Type: text/plain

-----BEGIN CERTIFICATE-----
xxxxxx
-----END CERTIFICATE-----

--xYzZY--

```

But I get the following error when executing:

```auto
Client-SSL-Warning: Peer certificate not verified

{
  "response": {
    "status": "fail",
    "err": {
      "code": 1023524874,
      "from": "JSON",
      "msg": "Failed to handle json field \"file-handle\". JSON field cannot be handled. It might be undefined or disabled by other fields.",
      "location": "ssl-cert.file-handle"
    }
  }
}

```

Now I’m confused, as to me it seems I did as mentioned in the docs.

---

<div class="post-metadata">

**Author:** ![kwitaeh](https://avatars.discourse-cdn.com/v4/letter/k/b5ac83/32.png) [@kwitaeh](https://community.a10networks.com/u/kwitaeh)\
**Post date:** [April 7, 2017, 3:07am UTC](https://community.a10networks.com/t/axapi-v3-0-upload-ssl-cert-and-ssl-key/438/2 "2017-04-07T03:07:17Z")

</div>

Hi tsaldsieder,

You can refer this capture that I done before.  
I could upload cert and key via Advanced Rest Client Tool from google.
