librasteve / raku-HTMX-Examples

htmx done in raku
Artistic License 2.0
6 stars 1 forks source link

Provide alternative instructions for Mac OS X M-series macs, as PEM cert can't be imported #12

Open truedat101 opened 4 days ago

truedat101 commented 4 days ago

To reproduce: cro run

🔌 Endpoint HTTPS will be at https://localhost:20000/
âš  examples Failed to import resources/fake-tls/server-crt.pem as PEM/ASN1/PKCS12
âš  examples   in block  at /Users/dkords/.rakubrew/versions/moar-2024.08/share/perl6/site/sources/3A5FFF87F3424F4E05A81A4FC87112BF66F4CA43 (IO::Socket::Async::SSL) line 522
âš  examples   in block  at /Users/dkords/.rakubrew/versions/moar-2024.08/share/perl6/site/sources/3A5FFF87F3424F4E05A81A4FC87112BF66F4CA43 (IO::Socket::Async::SSL) line 501
âš  examples   in method start at /Users/dkords/.rakubrew/versions/moar-2024.08/share/perl6/site/sources/D44076D0A385A3A9EB7D72A86CA729FD99EE59B7 (Cro::Service) line 12
âš  examples   in block <unit> at service.raku line 22
âš  examples
📓 examples Listening at https://localhost:20000

See https://github.com/croservices/cro-http/issues/194

truedat101 commented 4 days ago

The referenced issue provides a workaround.

librasteve commented 3 days ago

@truedat101 - thanks for the connection, I had lost track of the workaround - will leave this Issues open as reference until someone fixes the croservices code

truedat101 commented 3 days ago

I actually didn't quite understand why the failure occurs on apple silicon macs. And this isn't specific to your project so to be clear. When generating the stubs this workaround needs to be run.