Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Keep client certs when server authentication set#7464

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
earlephilhower merged 2 commits intoesp8266:masterfromearlephilhower:setinsec1
Jul 17, 2020

Conversation

@earlephilhower
Copy link
Collaborator

WiFiClientSecure.setInsecure() was clearing the secret key (but not the
_chain public client cert) incorrectly. The other server authentication
modes also had the same effect.

The only way for it to work would be if the app first set the server
authentication method and then the client keys. There's no good reason
for this.

Adjust the connection to only clear the server id methods and leave the
client ID untouched.

Fixes#7455

WiFiClientSecure.setInsecure() was clearing the secret key (but not the_chain public client cert) incorrectly.  The other server authenticationmodes also had the same effect.The only way for it to work would be if the app first set the serverauthentication method and then the client keys.  There's no good reasonfor this.Adjust the connection to only clear the server id methods and leave theclient ID untouched.Fixesesp8266#7455
@earlephilhowerearlephilhower merged commit91427a1 intoesp8266:masterJul 17, 2020
@earlephilhowerearlephilhower deleted the setinsec1 branchJuly 17, 2020 21:08
d-a-v added a commit that referenced this pull requestJul 18, 2020
earlephilhower added a commit to earlephilhower/Arduino that referenced this pull requestJul 23, 2020
PResp8266#7464 removed the reset of client authentication settings when serverauthentication settings were changed, however it never did initializethe client authentication information to nullptr in the constructor.This can result in crashes during connections when client certs are notapplied.Fix by resetting the client authenticaion variables on objectconstruction.
earlephilhower added a commit that referenced this pull requestJul 23, 2020
PR#7464 removed the reset of client authentication settings when serverauthentication settings were changed, however it never did initializethe client authentication information to nullptr in the constructor.This can result in crashes during connections when client certs are notapplied.Fix by resetting the client authenticaion variables on objectconstruction.
earlephilhower added a commit to earlephilhower/Arduino that referenced this pull requestAug 3, 2020
Run valgrind on host mock example runs to catch more bugs in CI.  Thesetests would have caught the problem inesp8266#7464 before users did.Add a list of some randomly picked examples to run, and add an option torun the loop exactly once in the host mock routine, so the test willactually exit under valgrind.
earlephilhower added a commit that referenced this pull requestAug 4, 2020
Run valgrind on host mock example runs to catch more bugs in CI.  Thesetests would have caught the problem in#7464 before users did.Add a list of some randomly picked examples to run, and add an option torun the loop exactly once in the host mock routine, so the test willactually exit under valgrind.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Client certs removed from connection whensetInsecure called, causing SSL connect failure.

1 participant

@earlephilhower

[8]ページ先頭

©2009-2025 Movatter.jp