How to create JWKS from keystore
Issue #171
new
How to create JWKS from keystore like JKS, PKCS12
Comments (5)
-
-
reporter I dont see x509 certificate added in this. I am trying to generate JWKs from my keystore file
-
jwk.setCertificateChain(...)
-
reporter How to get cert chain? please share the code
-
It takes a list
List<X509Certificate> certificateChain
or even a varargssetCertificateChain(X509Certificate... certificates)
which can be passed a single certificate. - Log in to comment
I should probably have some better examples up for working with JWKs and JWKSs but here’s a little code that shows how some of this can work.