# I'm getting “Signature invalid.” or “The signature has expired.” errors

**URL:** <https://devforum.zoom.us/t/im-getting-signature-invalid-or-the-signature-has-expired-errors/44030>\
**Category:** Web\
**Created:** [February 23, 2021, 8:16am UTC](https://devforum.zoom.us/t/im-getting-signature-invalid-or-the-signature-has-expired-errors/44030 "2021-02-23T08:16:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yunusemrekazann](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yunusemrekazann/32/23346_2.png) [@yunusemrekazann](https://devforum.zoom.us/u/yunusemrekazann)\
**Post date:** [February 23, 2021, 8:16am UTC](https://devforum.zoom.us/t/im-getting-signature-invalid-or-the-signature-has-expired-errors/44030/1 "2021-02-23T08:16:54Z")

</div>

**Description**  
I am getting an error. I am import your test “zoom-sdk-web-1.9.0.zip” in [Asp.NET](http://asp.net/) MVC. I try signature genereated by Serverside and “ZoomMtg.generateSignature”.

**Error**  
When I use “ZoomMtg.generateSignature” I get “Signature invalid.”  
When I use “[https://marketplace.zoom.us/docs/sdk/native-sdks/web/build/signature](https://marketplace.zoom.us/docs/sdk/native-sdks/web/build/signature)” site C# part I get “Signature invalid.”  
When I use same marketplace site C# part and I changed  
(ToTimestamp(DateTime.UtcNow.ToUniversalTime()) - 30000).ToString();  
to  
(ToTimestamp(DateTime.Now) - 30000).ToString();  
I get “The signature has expired.”

**Which Client Web SDK version?**  
Web SDK 1.9.0

**Screenshots**

 ![zoom hata](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/b/eb66c80f56de377899109343ab049180c29bd063.png)

**Device (please complete the following information):**

- Browser: Chrome, Opera, Mozilla Firefox
- Browser Version: Chrome 88.0.4324.146 (Official Build) (64 bit)  
Opera 74.0.3911.154  
Mozilla Firefox 85.0.2 (64 bit)

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [February 23, 2021, 9:49pm UTC](https://devforum.zoom.us/t/im-getting-signature-invalid-or-the-signature-has-expired-errors/44030/2 "2021-02-23T21:49:17Z")

</div>

Hey @yunusemrekazann,

Thank you for reaching out to the Zoom Developer Forum. Please provide the signature that you’re using when this happens and I’ll investigate this further.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![yunusemrekazann](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yunusemrekazann/32/23346_2.png) [@yunusemrekazann](https://devforum.zoom.us/u/yunusemrekazann)\
**Post date:** [February 24, 2021, 7:09am UTC](https://devforum.zoom.us/t/im-getting-signature-invalid-or-the-signature-has-expired-errors/44030/3 "2021-02-24T07:09:56Z")

</div>

Hey @MaxM ,

Thank you for answer.

When I use “ZoomMtg.generateSignature” I get “Signature invalid.”  
Signature =

When I use “[https://marketplace.zoom.us/docs/sdk/native-sdks/web/build/signature”](https://marketplace.zoom.us/docs/sdk/native-sdks/web/build/signature%E2%80%9D) site C# part I get “Signature invalid.”

When I use same marketplace site C# part and I changed  
(ToTimestamp(DateTime.UtcNow.ToUniversalTime()) - 30000).ToString();  
to  
(ToTimestamp(DateTime.Now) - 30000).ToString();  
I get “The signature has expired.”  
Signature =

Thanks,  
Yunus Emre KAZAN

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [February 25, 2021, 12:07am UTC](https://devforum.zoom.us/t/im-getting-signature-invalid-or-the-signature-has-expired-errors/44030/4 "2021-02-25T00:07:19Z")

</div>

Hey @yunusemrekazann,

Thank you for providing additional information. It looks like you are using your SDK Key and Secret in order to generate these signatures. Please use the API Key and Secret from a JWT app instead:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/f/6f751623dd651d4d240ec2fc93798e80c57b0bec.png)

Also, using the [Web SDK](https://marketplace.zoom.us/docs/sdk/native-sdks/web#zoom-web-sdk) will require a [Pro Plan](https://zoom.us/pricing) or higher.

> [@yunusemrekazann](#):
>
> When I use same marketplace site C# part and I changed  
> (ToTimestamp(DateTime.UtcNow.ToUniversalTime()) - 30000).ToString();  
> to  
> (ToTimestamp(DateTime.Now) - 30000).ToString();  
> I get “The signature has expired.”

Make sure that you are using UTC in order to generate the timestamp as any other timezone could conflict with the timezone used by our servers.

I hope that helps! Let me know if you have any questions.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![yunusemrekazann](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/yunusemrekazann/32/23346_2.png) [@yunusemrekazann](https://devforum.zoom.us/u/yunusemrekazann)\
**Post date:** [February 25, 2021, 2:42pm UTC](https://devforum.zoom.us/t/im-getting-signature-invalid-or-the-signature-has-expired-errors/44030/5 "2021-02-25T14:42:22Z")

</div>

Hey @MaxM ,

Thanks for your answer. JWT is working but I already use Pro Plan WebSDK Api Key and Secret so I don’t understand why it isn’t working?

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [February 25, 2021, 11:31pm UTC](https://devforum.zoom.us/t/im-getting-signature-invalid-or-the-signature-has-expired-errors/44030/6 "2021-02-25T23:31:00Z")

</div>

Hey @yunusemrekazann,

Thank you for the update. Just to clarify, you were able to generate a valid signature using the JWT credentials and you’re wondering why the SDK credentials don’t work, is that correct?

If so, this is the expected behavior when using the Web SDK. You will need to generate a signature with the JWT credentials instead of the SDK credentials regardless of the plan that you’re on.

Let me know if that helps.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [March 28, 2021, 9:31am UTC](https://devforum.zoom.us/t/im-getting-signature-invalid-or-the-signature-has-expired-errors/44030/7 "2021-03-28T09:31:23Z")

</div>

Closed on March 28, 2021, 9:31am UTC

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