Rpc.local problem with ssl

  1. i want create mutual tls, i have a esp32 which connects to a router and gets its ip.
    i have added mutual tls for secure connection which works properly ,
    2)When this esp call its own rpc (RPC.LOCAL) it doesn’t work as it requires client certificate , so i added the client certificate in wifi.sta.cert and wifi.sta.ca_cert wifi.sta.key wifi.sta.user ,

3)By adding client certificate in wifi.sta RPC local call works but it doesn’t get ip from the router

Please suggest what to do?

Used rpc.ssl_cert etc instead of wifi.sta. but the RPC local is not running beacause of auth , where to send auth when RPC call is done locally , please suggest i have hit a hall