vloschiavo / powerwall2

Tesla Powerwall 2 - Local Gateway API documentation
Apache License 2.0
288 stars 51 forks source link

Getting a certificate on windows #73

Closed kemble9900 closed 1 year ago

kemble9900 commented 2 years ago

Hi, I just wanted to ask how to go about getting a certificate on windows. I tried using

openssl s_client -showcerts -connect 192.168.0.164:443 < /dev/null | sed --quiet '/BEGIN CERTIFICATE/,/END CERTIFICATE/p' > cacert.pem

however it said the system cannot find the path specified, so I wondered if anyone knew where I could be going wrong, thanks, kemble9900.

gmichaela commented 2 years ago

openssl s_client -showcerts -connect 192.168.0.164:443

and copy and paste the -----BEGIN CERTIFICATE----- to -----END CERTIFICATE----- block.

(or output to a file by adding to the end > c:\temp\cacert.pem) and keep the above block after editing.

gmichaela commented 2 years ago

Even easier on windows-- Fire up Chrome, where the HTTPS lock is typically ('Not Secure') click, Certificate is not valid, click. Details tab. Export... button