Skip to content

Conversation

@jenow
Copy link

@jenow jenow commented Feb 25, 2021

What does this PR do ?

Add an option to accept bad SSL certificate.

@jenow jenow self-assigned this Feb 25, 2021

```dart
HttpProtocol(Uri);
HttpProtocol(Uri, {bool acceptUnsignedCertificate = false});
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
HttpProtocol(Uri, {bool acceptUnsignedCertificate = false});
HttpProtocol(Uri, {bool acceptBadCertificate = false});

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be more generic since a certificate can be invalid because of expiry date

@jenow jenow requested a review from Aschen February 25, 2021 14:12
@jenow jenow merged commit da9b5c2 into 2-dev Feb 25, 2021
@jenow jenow deleted the accept-unsigned-certificate branch February 25, 2021 14:37
@jenow jenow mentioned this pull request Feb 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants