Skip to content

Unable to read the default .pem files generated by a Cro app. #194

@arunvickram

Description

@arunvickram

Hi,

I generated a Cro repo using the following command:

$ cro stub http checkout checkout
Stubbing a HTTP Service 'checkout' in 'checkout'...

First, please provide a little more information.

Support HTTP/1.1 (yes/no) [yes]: yes
Support HTTP/2.0 (yes/no) [no]: yes
Support Web Sockets (yes/no) [no]: yes

After that, I went in to simply run the app by doing:

cro run

and then it gave me this error:

🔌 Endpoint HTTPS will be at https://localhost:20000/
⚠ checkout Failed to import resources/fake-tls/server-crt.pem as PEM/ASN1/PKCS12
⚠ checkout   in block  at ~/.asdf/installs/raku/2024.01/share/perl6/site/sources/8143677EA272A04F4BA3843A02BBD016F5269804 (IO::Socket::Async::SSL) line 521
⚠ checkout   in block  at ~/.asdf/installs/raku/2024.01/share/perl6/site/sources/8143677EA272A04F4BA3843A02BBD016F5269804 (IO::Socket::Async::SSL) line 500
⚠ checkout   in method start at ~/.asdf/installs/raku/2024.01/share/perl6/site/sources/D44076D0A385A3A9EB7D72A86CA729FD99EE59B7 (Cro::Service) line 12
⚠ checkout   in block <unit> at service.raku line 22
⚠ checkout
📓 checkout Listening at https://localhost:20000

I managed to trace the error to this section of code:

I'm gonna be honest this is probably way above my pay grade to fix, so if someone could look into this, that would be great!
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions