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

[webview_flutter_wkwebview] Fixes loadFlutterAsset exception and updates native wrapper for SecTrust and SecCertificate #9016

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

bparrishMines
Copy link
Contributor

@bparrishMines bparrishMines commented Apr 6, 2025

Adds support to the native wrapper to handle SecTrust and SecCertificate.

This is a part of landing #7893 by splitting of the native wrapper implementation.

Also fixes flutter/flutter#162938 and adds an integration test for loadFlutterAsset.

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

@bparrishMines bparrishMines changed the title Sec methods [webview_flutter_wkwebview] Fixes loadFlutterAsset exception and updates native wrapper for SecTrust and SecCertificate Apr 6, 2025
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For future reference, I ran this in a terminal to generate this file

# Generate a private key
openssl genpkey -algorithm RSA -out test_key.pem -pkeyopt rsa_keygen_bits:2048

# Generate a Certificate Signing Request (CSR) - fill in dummy info
openssl req -new -key test_key.pem -out test_csr.pem

# Generate a self-signed certificate (e.g., valid for 365 days) and export to DER format
openssl x509 -req -days 5000 -in test_csr.pem -signkey test_key.pem -out test_cert.der -outform DER

@bparrishMines bparrishMines marked this pull request as ready for review April 6, 2025 20:24
@bparrishMines bparrishMines requested a review from cbracken as a code owner April 6, 2025 20:24
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.

[webview_flutter] loadFlutterAsset throws PlatformException on macOS
1 participant