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

Mock fails to launch when key & cert have to be auto-generated #2270

Closed
staffier opened this issue Mar 5, 2023 · 7 comments
Closed

Mock fails to launch when key & cert have to be auto-generated #2270

staffier opened this issue Mar 5, 2023 · 7 comments
Assignees
Milestone

Comments

@staffier
Copy link

staffier commented Mar 5, 2023

This is likely a permissions issue with my particular machine, but I'm running into RuntimeException errors when attempting to launch a mock server using SSL, without a key and cert specified (so Karate attempts to create them for me).

To replicate, simply run java -jar karate.jar -m server.feature -p 8080 -s (assuming you have the JAR file saved locally)

Oddly enough, * karate.start({mock: 'server.feature', port: 8080, ssl: true}) works just fine...but creates the key and cert in the target folder.

@kang-mansher
Copy link
Contributor

Can I work on this issue

@ptrthomas
Copy link
Member

@kang-mansher sure !

@kang-mansher
Copy link
Contributor

Hey @ptrthomas ,

I am not able to create a branch from development. and not able to find any documentation regarding raising PR.
Do I need any rights in the repository?

@ptrthomas
Copy link
Member

@kang-mansher no you should be able to create a PR and others have been able to. the contrib docs are here: https://github.com/karatelabs/karate/blob/master/.github/CONTRIBUTING.md

@kang-mansher
Copy link
Contributor

Hi @ptrthomas,

Thank you for your support.

I have raised PR for the same.

Please find the description and the screenshots of the replicated issue as well as the fix in the PR.

Thank you

@ptrthomas
Copy link
Member

thanks @kang-mansher !

@staffier would you be able to build the JAR locally (from develop) and test. I also think now with GitHub Codespaces there is an option to build things remotely. else I will plan a 1.4.1.RC

@ptrthomas
Copy link
Member

1.4.1 released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants