# Question about sample Go JWT code

**URL:** <https://community.auth0.com/t/question-about-sample-go-jwt-code/20903>\
**Category:** Get Help\
**Tags:** go, jwt\
**Created:** [February 4, 2019, 1:56am UTC](https://community.auth0.com/t/question-about-sample-go-jwt-code/20903 "2019-02-04T01:56:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![omortis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/omortis/32/10354_2.png) [@omortis](https://community.auth0.com/u/omortis)\
**Post date:** [February 4, 2019, 1:56am UTC](https://community.auth0.com/t/question-about-sample-go-jwt-code/20903/1 "2019-02-04T01:56:38Z")

</div>

In the sample code [here](http://github.com/auth0-community/auth0) under the **Client Credentials - RS256** section, should:

```
pem, err := ioutil.ReadFile("path/to/your/cert.pem")

```

actually be:

```
sharedKey, err := ioutil.ReadFile("path/to/your/cert.pem")

```

It can’t be pem, the variable name screws up the encoding/pem import. I tried it with sharedKey and it seems to work fine. Just want to be sure.

Thanks!

John

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [February 4, 2019, 5:37pm UTC](https://community.auth0.com/t/question-about-sample-go-jwt-code/20903/3 "2019-02-04T17:37:34Z")

</div>

Hi there @omortis, I’m glad to hear you got it working. We don’t actively have any open issues related to this scenario on the Github Repo. If you’d like you can open up an issue or submit a pull request to have your suggested changes implemented across the board! Of course I’d be happy to help in any way. Thanks for your feedback!

---

<div class="post-metadata">

**Author:** ![omortis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/omortis/32/10354_2.png) [@omortis](https://community.auth0.com/u/omortis)\
**Post date:** [February 5, 2019, 2:22am UTC](https://community.auth0.com/t/question-about-sample-go-jwt-code/20903/4 "2019-02-05T02:22:18Z")

</div>

James,

Looks like just an edit to the Readme. Let me check later this week when my days shorten up a bit. I’d love to get involved.

Thanks,

John

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [February 5, 2019, 1:59pm UTC](https://community.auth0.com/t/question-about-sample-go-jwt-code/20903/5 "2019-02-05T13:59:11Z")

</div>

Sounds great! Otherwise let me know and I’d be happy to take care of it, thanks!

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [February 12, 2019, 3:20pm UTC](https://community.auth0.com/t/question-about-sample-go-jwt-code/20903/6 "2019-02-12T15:20:11Z")

</div>

Touching base here @omortis and seeing if you need any additional assistance on this front? Please let me know if I can be of help.

---

<div class="post-metadata">

**Author:** ![omortis](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/omortis/32/10354_2.png) [@omortis](https://community.auth0.com/u/omortis)\
**Post date:** [February 12, 2019, 3:34pm UTC](https://community.auth0.com/t/question-about-sample-go-jwt-code/20903/7 "2019-02-12T15:34:22Z")

</div>

I am all set - still trying to find time to clone the repo but this issue is all set, RS256 works like a charm.

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [February 14, 2019, 8:18pm UTC](https://community.auth0.com/t/question-about-sample-go-jwt-code/20903/8 "2019-02-14T20:18:56Z")

</div>

I’m glad to hear it @omortis. Be sure to please let us know if we can be of any assistance in the future!

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [March 1, 2019, 8:18pm UTC](https://community.auth0.com/t/question-about-sample-go-jwt-code/20903/9 "2019-03-01T20:18:57Z")

</div>

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