How to use certificates generated from Hashicorp into Java side

Hi,

I have a springboot java project which generates signed JWT for our inter service authorization. JWT is signed using selfsigned certificate. certificate is retrieved from Java keystore.

Now in the same springboot project, I integrated valut to retrieve secrets so my question here is can i retrieve the self signed certificate from HashiCorp Vault instead of reading it from Java Keystore. So in future both my certificates and private keys will be with Vault itself.

I have tried the vault certificate generations but not sure how to use access it in Springboot project for JWT signing. Need help on this part