Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certificates for esp8266 iotsa devices considered "too weak" #73

Open
jackjansen opened this issue Jan 17, 2021 · 2 comments
Open

Certificates for esp8266 iotsa devices considered "too weak" #73

jackjansen opened this issue Jan 17, 2021 · 2 comments

Comments

@jackjansen
Copy link
Contributor

Iotsa devices cannot be connected to anymore.

Attempting curl gives

curl: (60) SSL certificate problem: EE certificate key too weak

I don't think increasing the number of key bits (currently 512) is an option for the esp8266, but need to investigate.

Otherwise we have to check whether there is a workaround (by allowing weaker keys in the plugins for the devices).

But first we need to investigate that this is indeed the problem...

@jackjansen
Copy link
Contributor Author

Indeed, that does seem to be the problem. The following command doesn't work (but gives an unrelated error message):

curl --ciphers DEFAULT@SECLEVEL=1 https://smartmeter.local/p1?format=json

There's interesting reading at https://serverfault.com/questions/1033354/how-to-diagnose-ca-certificate-too-weak-error-how-to-use-the-ca-cert-anyway

@jackjansen
Copy link
Contributor Author

The quick fix: use openssl version -d to find the config directory. Edit the openssl.cnf file there. Set CipherString = DEFAULT@SECLEVEL=1 (probably near the end). Sigh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant