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

Get certificate from compilated project #2007

Open
xbignell opened this issue Jul 24, 2020 · 1 comment
Open

Get certificate from compilated project #2007

xbignell opened this issue Jul 24, 2020 · 1 comment
Labels

Comments

@xbignell
Copy link

Hello,

I am trying to set SSL configuration in my project.
I am trying to get my .jks from my .jar after compiling my project because I want to stay running server all animic as possible without files, only jar like an Android app.
Is there any way we can set the keyStore inside our application.conf to retrieve the .jks from inside the .jar?

Currently we are getting this exception when running our application:
Exception in thread "main" java.io.FileNotFoundException: /bin/runner/./certificates/temporary.jks (No such file or directory)
"certificates/temporary.jks" is compiled as a resource inside my jar but ktor is looking for it outside.

Thank you so much,

Xavi Bignell

@sfe-efficy
Copy link

It would be nice if we can load the jks file from resources folder.

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

No branches or pull requests

2 participants