# How to set up the initial jwkset\_path in an OpenID Connection in Elasticsearch

**URL:** <https://discuss.elastic.co/t/how-to-set-up-the-initial-jwkset-path-in-an-openid-connection-in-elasticsearch/220133>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [February 20, 2020, 8:53am UTC](https://discuss.elastic.co/t/how-to-set-up-the-initial-jwkset-path-in-an-openid-connection-in-elasticsearch/220133 "2020-02-20T08:53:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yungyoung\_Ok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yungyoung_ok/32/43465_2.png) [@Yungyoung\_Ok](https://discuss.elastic.co/u/Yungyoung_Ok)\
**Post date:** [February 20, 2020, 8:53am UTC](https://discuss.elastic.co/t/how-to-set-up-the-initial-jwkset-path-in-an-openid-connection-in-elasticsearch/220133/1 "2020-02-20T08:53:56Z")

</div>

I try to implement SSO function using OpenID Connect(using google api).

So I add configuration in elasticsearch.yml by referring to the URL below.

[https://www.elastic.co/guide/en/elasticsearch/reference/current/oidc-guide-authentication.html#oidc-claims-mapping](https://www.elastic.co/guide/en/elasticsearch/reference/current/oidc-guide-authentication.html#oidc-claims-mapping)

There is an entry 'op.jwkset\_path' during setup.  
(op.jwkset\_path: oidc/jwkset.json)  
These settings are known as jwt storage paths issued by op.  
when I first start ElasticSearch, I don't have that file.  
Therefore, 'Nosuchfile' errors continue to occur when starting elasticsearch.  
what should I do with the setup?

---

<div class="post-metadata">

**Author:** ![ikakavas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ikakavas/32/34430_2.png) [@ikakavas](https://discuss.elastic.co/u/ikakavas)\
**Post date:** [February 20, 2020, 2:38pm UTC](https://discuss.elastic.co/t/how-to-set-up-the-initial-jwkset-path-in-an-openid-connection-in-elasticsearch/220133/2 "2020-02-20T14:38:59Z")

</div>

You need to

- Either download that file from your OP(google): the JWKS is referenced in [https://accounts.google.com/.well-known/openid-configuration](https://accounts.google.com/.well-known/openid-configuration) and is [https://www.googleapis.com/oauth2/v3/certs](https://www.googleapis.com/oauth2/v3/certs) . So download and save this locally before you start elasticsearch
- Or point elasticsearch to the url `op.jwkset_path: https://www.googleapis.com/oauth2/v3/certs` and we will handle fetching it for you.

---

<div class="post-metadata">

**Author:** ![Yungyoung\_Ok](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yungyoung_ok/32/43465_2.png) [@Yungyoung\_Ok](https://discuss.elastic.co/u/Yungyoung_Ok)\
**Post date:** [February 21, 2020, 1:23am UTC](https://discuss.elastic.co/t/how-to-set-up-the-initial-jwkset-path-in-an-openid-connection-in-elasticsearch/220133/3 "2020-02-21T01:23:00Z")

</div>

thanks!!!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 20, 2020, 1:23am UTC](https://discuss.elastic.co/t/how-to-set-up-the-initial-jwkset-path-in-an-openid-connection-in-elasticsearch/220133/4 "2020-03-20T01:23:08Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
