# Ionic native http ssl client based authentification

**URL:** <https://forum.ionicframework.com/t/ionic-native-http-ssl-client-based-authentification/129596>\
**Category:** Ionic Native\
**Created:** [May 3, 2018, 11:07am UTC](https://forum.ionicframework.com/t/ionic-native-http-ssl-client-based-authentification/129596 "2018-05-03T11:07:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gischy](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@gischy](https://forum.ionicframework.com/u/gischy)\
**Post date:** [May 3, 2018, 11:07am UTC](https://forum.ionicframework.com/t/ionic-native-http-ssl-client-based-authentification/129596/1 "2018-05-03T11:07:26Z")

</div>

hi,

im using the native http plugin. i want my app to send the clientbased certificate with each request.

i placed my .cer file in platforms/android/assets

my request looks like:

```
this.http.get('https://someip/testapi', {}, {})
  .then(data => {
    console.log("data",data)
  })
  .catch(error => {
    console.log("error",error);
  });
```

---

<div class="post-metadata">

**Author:** ![gischy](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@gischy](https://forum.ionicframework.com/u/gischy)\
**Post date:** [May 3, 2018, 11:08am UTC](https://forum.ionicframework.com/t/ionic-native-http-ssl-client-based-authentification/129596/2 "2018-05-03T11:08:18Z")

</div>

im getting the following error:

```auto
<html>
<head><title>400 No required SSL certificate was sent</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<center>No required SSL certificate was sent</center>
<hr><center>nginx/1.10.3 (Ubuntu)</center>
</body>
</html>

```

---

<div class="post-metadata">

**Author:** ![olsicelaj](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/olsicelaj/32/118207_2.png) [@olsicelaj](https://forum.ionicframework.com/u/olsicelaj)\
**Post date:** [December 20, 2018, 2:18pm UTC](https://forum.ionicframework.com/t/ionic-native-http-ssl-client-based-authentification/129596/3 "2018-12-20T14:18:35Z")

</div>

Did you ever manage to solve this? I have the same problem

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:37pm UTC](https://forum.ionicframework.com/t/ionic-native-http-ssl-client-based-authentification/129596/4 "2021-07-19T21:37:19Z")

</div>


