robclark56 / RaspiBolt-Extras

More Ways to Use The RaspiBolt
MIT License
21 stars 8 forks source link

Auto Wallet Unlock with Lets Encrypt SSL certificate #6

Open 3ntranced opened 5 years ago

3ntranced commented 5 years ago

Hi, I set up an internal lan webserver running https on 192.168.0.2:81 Running curl --data "action=getEncryptedPassword" https://192.168.0.2:81/raspibolt/utilities.php I get error curl: (51) SSL: no alternative certificate subject name matches target host name '192.168.0.2' Only if I run curl with option -k then it works.

Is there a way to get the certificate to work inside the lan? Thanks

robclark56 commented 5 years ago

I am sure there is ... but I don't know how.

3ntranced commented 5 years ago

I guess just running with -k it is then?

robclark56 commented 5 years ago

Have a read of this: https://github.com/Stadicus/guides/blob/master/raspibolt/raspibolt_6A_auto-unlock.md

The curl command is using --cacert which may be what you are after.

3ntranced commented 5 years ago

Ok I ll look into that. Thank you