# How do i disable client authentication to connect wallet api with browser?

**URL:** <https://forum.cardano.org/t/how-do-i-disable-client-authentication-to-connect-wallet-api-with-browser/21250>\
**Category:** Developers\
**Tags:** cardano, api, wallet\
**Created:** [13 March 2019 07:01 UTC](https://forum.cardano.org/t/how-do-i-disable-client-authentication-to-connect-wallet-api-with-browser/21250 "2019-03-13T07:01:09Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sneha\_Patel](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/sneha_patel/32/9399_2.png) [@Sneha\_Patel](https://forum.cardano.org/u/Sneha_Patel)\
**Post date:** [13 March 2019 07:01 UTC](https://forum.cardano.org/t/how-do-i-disable-client-authentication-to-connect-wallet-api-with-browser/21250/1 "2019-03-13T07:01:09Z")

</div>

I am developing web ui for cardano wallet with PHP code…It works fine while running on commandline but when i just tried to write [https://127.0.0.1:8090/](https://127.0.0.1:8090/) on browser It getting errors.

`NET::ERR_CERT_AUTHORITY_INVALID` on browser page

---

<div class="post-metadata">

**Author:** ![\_ilap](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/_ilap/32/80886_2.png) [@\_ilap](https://forum.cardano.org/u/_ilap)\
**Post date:** [13 March 2019 10:11 UTC](https://forum.cardano.org/t/how-do-i-disable-client-authentication-to-connect-wallet-api-with-browser/21250/2 "2019-03-13T10:11:48Z")

</div>

> [@Sneha\_Patel](#):
>
> `ERR_CERT_AUTHORITY_INVALID` on browser page

You can start a node /wo tls. As I remember /w --no-tls option.  
Or import the Daedalus/node’s self signed root cert and and the signed client cert.  
But, “how” depends on the OS you use.

---

<div class="post-metadata">

**Author:** ![Sneha\_Patel](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/sneha_patel/32/9399_2.png) [@Sneha\_Patel](https://forum.cardano.org/u/Sneha_Patel)\
**Post date:** [13 March 2019 10:36 UTC](https://forum.cardano.org/t/how-do-i-disable-client-authentication-to-connect-wallet-api-with-browser/21250/3 "2019-03-13T10:36:39Z")

</div>

I’ using linux… but where i have to write --no-tls **OR** --no-client-auth

as i;ve refered this link

> <https://github.com/input-output-hk/cardano-sl/blob/develop/docs/tls-authentication.md>

---

<div class="post-metadata">

**Author:** ![\_ilap](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/_ilap/32/80886_2.png) [@\_ilap](https://forum.cardano.org/u/_ilap)\
**Post date:** [13 March 2019 10:48 UTC](https://forum.cardano.org/t/how-do-i-disable-client-authentication-to-connect-wallet-api-with-browser/21250/4 "2019-03-13T10:48:10Z")

</div>

What backend do you run on Linux? Or did you simply run the Daedalus wallet and conencted to its backend?

---

<div class="post-metadata">

**Author:** ![Sneha\_Patel](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/sneha_patel/32/9399_2.png) [@Sneha\_Patel](https://forum.cardano.org/u/Sneha_Patel)\
**Post date:** [13 March 2019 10:52 UTC](https://forum.cardano.org/t/how-do-i-disable-client-authentication-to-connect-wallet-api-with-browser/21250/5 "2019-03-13T10:52:21Z")

</div>

No daeddalus… I’ve connected to its backend

---

<div class="post-metadata">

**Author:** ![\_ilap](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/_ilap/32/80886_2.png) [@\_ilap](https://forum.cardano.org/u/_ilap)\
**Post date:** [13 March 2019 10:53 UTC](https://forum.cardano.org/t/how-do-i-disable-client-authentication-to-connect-wallet-api-with-browser/21250/6 "2019-03-13T10:53:07Z")

</div>

The how did you start the backend?

---

<div class="post-metadata">

**Author:** ![Sneha\_Patel](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/sneha_patel/32/9399_2.png) [@Sneha\_Patel](https://forum.cardano.org/u/Sneha_Patel)\
**Post date:** [13 March 2019 10:55 UTC](https://forum.cardano.org/t/how-do-i-disable-client-authentication-to-connect-wallet-api-with-browser/21250/7 "2019-03-13T10:55:01Z")

</div>

i simply run the wallet script ./connect-to-mainnet and on the other terminal I perform the operation… like curl command and execution of php file

---

<div class="post-metadata">

**Author:** ![\_ilap](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/_ilap/32/80886_2.png) [@\_ilap](https://forum.cardano.org/u/_ilap)\
**Post date:** [13 March 2019 11:03 UTC](https://forum.cardano.org/t/how-do-i-disable-client-authentication-to-connect-wallet-api-with-browser/21250/8 "2019-03-13T11:03:36Z")

</div>

> [@Sneha\_Patel](#):
>
> ./connect-to-mainnet

in that script file add a line --no-tls. Unfortunately, I do not have any Linux setup anymore, and I cannot recall what’s in that script. if you do `$ cat connect-to-mainnet` I probably would be able to help.

---

<div class="post-metadata">

**Author:** ![Sneha\_Patel](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/sneha_patel/32/9399_2.png) [@Sneha\_Patel](https://forum.cardano.org/u/Sneha_Patel)\
**Post date:** [13 March 2019 11:12 UTC](https://forum.cardano.org/t/how-do-i-disable-client-authentication-to-connect-wallet-api-with-browser/21250/9 "2019-03-13T11:12:07Z")

</div>

![connect-to-mainnet(file)](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/2X/b/b86ddc09f35447f66d354ec16f4a8582e6deb852.png) Look I’ve made changes but It doesn’t give any output…

 ![error](https://us1.discourse-cdn.com/flex023/uploads/cardano/original/2X/2/2231cc866ad26db5a1475748b1bcbaf95f3ea4fe.png)

---

<div class="post-metadata">

**Author:** ![\_ilap](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/_ilap/32/80886_2.png) [@\_ilap](https://forum.cardano.org/u/_ilap)\
**Post date:** [13 March 2019 11:19 UTC](https://forum.cardano.org/t/how-do-i-disable-client-authentication-to-connect-wallet-api-with-browser/21250/10 "2019-03-13T11:19:45Z")

</div>

You should delete/comment out tlscert/tlskey etc. from that script (after made a copy of it) and just leave --no-tls. But, I am heading to bed now.

---

<div class="post-metadata">

**Author:** ![Sneha\_Patel](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/sneha_patel/32/9399_2.png) [@Sneha\_Patel](https://forum.cardano.org/u/Sneha_Patel)\
**Post date:** [14 March 2019 05:09 UTC](https://forum.cardano.org/t/how-do-i-disable-client-authentication-to-connect-wallet-api-with-browser/21250/11 "2019-03-14T05:09:28Z")

</div>

Yesterday I’ve tried --no-client-auth in the beginning of the script and it was run and printed on browser but after 5-10 mins it stopped to work…and back to previous state

---

<div class="post-metadata">

**Author:** ![disasm](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/disasm/32/9673_2.png) [@disasm](https://forum.cardano.org/u/disasm)\
**Post date:** [16 March 2019 00:13 UTC](https://forum.cardano.org/t/how-do-i-disable-client-authentication-to-connect-wallet-api-with-browser/21250/12 "2019-03-16T00:13:54Z")

</div>

It’s actually easier than that. Before you nix-build it you can copy sample-wallet-config.nix to custom-wallet-config.nix and customize the options there. I highly recommend reading docs/exchange-onboarding.md as even though you’re not an exchange you seem to have similar use cases. Disabling it is fine for development but it’s highly recommended you learn how to do client certificate authentication with php like this shows. [https://veewee.github.io/blog/authenticating-with-x509-client-certificates/](https://veewee.github.io/blog/authenticating-with-x509-client-certificates/)

---

<div class="post-metadata">

**Author:** ![Sneha\_Patel](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.cardano.org/sneha_patel/32/9399_2.png) [@Sneha\_Patel](https://forum.cardano.org/u/Sneha_Patel)\
**Post date:** [18 March 2019 06:48 UTC](https://forum.cardano.org/t/how-do-i-disable-client-authentication-to-connect-wallet-api-with-browser/21250/13 "2019-03-18T06:48:49Z")

</div>

Thanks…But I’ve written code without client authentication…And it works fine…

Now can you tell me how to add wallet script in php file so that I do not have to run ./connect-to-mainnet on command line every time to run my PHP file on browser
