Ionic native http ssl client based authentification


#1

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);
  });

#2

im getting the following error:

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