You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! so I've followed the guide for getting up SSL with jaguar (I'm using flutter with a headless webview). But I'm getting the following error when trying to access the URL:
"An SSL error has occurred and a secure connection to the server cannot be made."
Here's my current code snippet:
Future<void> _startServer() async {
final cert = await rootBundle
.load("assets/ssl/certificate.pem");
final keys =
await rootBundle.load("assets/ssl/keys.pem");
final security = new SecurityContext()
..setTrustedCertificatesBytes(cert.buffer.asInt8List())
..usePrivateKeyBytes(keys.buffer.asInt8List());
final server = Jaguar(securityContext: security);
server.addRoute(serveFlutterAssets());
await server.serve(logRequests: true);
server.log.onRecord.listen((r) => print(r));
}
The text was updated successfully, but these errors were encountered:
Hello! so I've followed the guide for getting up SSL with jaguar (I'm using flutter with a headless webview). But I'm getting the following error when trying to access the URL:
"An SSL error has occurred and a secure connection to the server cannot be made."
Here's my current code snippet:
The text was updated successfully, but these errors were encountered: