selenium-wire icon indicating copy to clipboard operation
selenium-wire copied to clipboard

seleniumwire-ca.pem not generating properly

Open Fr0st3h opened this issue 4 years ago • 4 comments

Sometimes the file doesn't generate properly

Examples

Sometimes generates like this

-----BEGIN CERTIFICATE----- CERT -----END CERTIFICATE----------BEGIN PRIVATE KEY----- (on the same line, I need to break it up for it to work) KEY -----END PRIVATE KEY-----

or one other thing I noticed was like this

-----BEGIN CERTIFICATE----- CERT -----END CERTIFICATE--------BEGIN PRIVATE KEY----- (Not enough '-' after END CERTIFICATE and before BEGIN PRIVATE KEY ) KEY -----END PRIVATE KEY-----

I am using FireFox 95.0.3

Fr0st3h avatar Dec 26 '21 03:12 Fr0st3h

I encountered the same error because you used pyinstaller or other packaging。 If you run directly in Python, there is no problem

pengpengker avatar Dec 28 '21 07:12 pengpengker

I have made it so if the file exist and is broken it splits up that one line, I really hope someone can fix this properly

Fr0st3h avatar Dec 28 '21 08:12 Fr0st3h

@CMTFrostyy Thanks for raising this.

How are you installing Selenium Wire - are you using pip install or some other method, e.g. pyinstaller?

Also, what OS are you using?

wkeeling avatar Dec 28 '21 08:12 wkeeling

If use pyinstaller on windows, has this Issues!

pengpengker avatar Dec 29 '21 08:12 pengpengker