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

Can't get the resource for my .pem certificate #242

Open
LiamWBA opened this issue Apr 29, 2021 · 1 comment
Open

Can't get the resource for my .pem certificate #242

LiamWBA opened this issue Apr 29, 2021 · 1 comment

Comments

@LiamWBA
Copy link

LiamWBA commented Apr 29, 2021

I don't think this is an issue with this driver but please could you advise on how to fix this error when trying to reference my .pem certificate.

I am getting a null pointer exception when trying .pemResource for my .pem file which is in the same folder as the class im calling the .pemResource from.
What is the path to my vault-public.pem for this method PLEASE!?! (It's driving me a little insane)

image

@darkedges
Copy link

darkedges commented May 28, 2021

Try using

final SslConfig sslConfig = new SslConfig().pemResource("/Avis/WTC/vault-public.pem").build();

image

Edit:
I previously suggested it was a bug, but it was more my misunderstanding of how to reference resources from a Class deep in a package.

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

No branches or pull requests

2 participants