# ZoomMtg.join() returns “The signature has expired.” help me please

**URL:** <https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805>\
**Category:** Web\
**Created:** [June 28, 2019, 5:00pm UTC](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805 "2019-06-28T17:00:38Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![magh92](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/magh92/32/1171_2.png) [@magh92](https://devforum.zoom.us/u/magh92)\
**Post date:** [June 28, 2019, 5:00pm UTC](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805/1 "2019-06-28T17:00:39Z")

</div>

Hi I’m integrate Zoom in my website, reading other answeres for this topic, I put a break point in my console in ZoomMtg.join and wait 5 seconds, this work for me but how can I do for put the setTime out in my code? I made how Michael\_Purnell said

 ![Captura](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/1/16cfb2a0cbe85e01d0de49703c9dd21fa8a1c157.png)

---

<div class="post-metadata">

**Author:** ![ojus.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ojus.zoom/32/734_2.png) [@ojus.zoom](https://devforum.zoom.us/u/ojus.zoom)\
**Post date:** [June 28, 2019, 11:29pm UTC](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805/2 "2019-06-28T23:29:26Z")

</div>

Hi @magh92,

We have received your request and will update you shortly.

Thanks

---

<div class="post-metadata">

**Author:** ![magh92](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/magh92/32/1171_2.png) [@magh92](https://devforum.zoom.us/u/magh92)\
**Post date:** [June 29, 2019, 3:04pm UTC](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805/3 "2019-06-29T15:04:08Z")

</div>

Thanks for answere, I hope you can help me

---

<div class="post-metadata">

**Author:** ![magh92](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/magh92/32/1171_2.png) [@magh92](https://devforum.zoom.us/u/magh92)\
**Post date:** [July 8, 2019, 8:57pm UTC](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805/4 "2019-07-08T20:57:12Z")

</div>

Someone can help me to solve this problem please? I need do the integration

---

<div class="post-metadata">

**Author:** ![manoj.sarode](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@manoj.sarode](https://devforum.zoom.us/u/manoj.sarode)\
**Post date:** [July 11, 2019, 5:09am UTC](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805/5 "2019-07-11T05:09:29Z")

</div>

Hi Michael Purnell,

I am also getting the below error :  
{method: “join”, status: false, errorCode: 1, errorMessage: “The signature has expired.”, result: null}

I am using Jquery also passing the correct signature still it’s give me above error.

Thanks,  
Manoj Sarode.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 11, 2019, 5:30pm UTC](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805/6 "2019-07-11T17:30:41Z")

</div>

Hey @manoj.sarode and @magh92,

I am working on reproducing this error and will get back to you with an update.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 11, 2019, 7:02pm UTC](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805/7 "2019-07-11T19:02:27Z")

</div>

Hey @manoj.sarode and @magh92

Can I get more details on how to reproduce this error? I had no trouble getting this to work.  
What type of computer and OS and browser are you getting this error message on?

Possible related solution?

> [@Expired signature](https://devforum.zoom.us/t/expired-signature/2572/6):
>
> I enabled debug flag on ZoomMtng.init() so it automatically printed the errorCallback and thats where I got that message. I was setting my role to 0. However, I have a resolution on this. I noticed that my mac on which zoom sdk was not working as expected, was running El Captain - which is an old OS. I have been ignoring messages to upgrade my OS for a while now. I took this opportunity to upgrade to Mojave last night. (OS was the only difference between my 2 laptops). And after the update, it…

---

<div class="post-metadata">

**Author:** ![manoj.sarode](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@manoj.sarode](https://devforum.zoom.us/u/manoj.sarode)\
**Post date:** [July 12, 2019, 4:13am UTC](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805/8 "2019-07-12T04:13:21Z")

</div>

Hi Tommy,

Thank you for quick reply !

Here are the required the details :

OS : Windows 10  
bit : (64-bit)  
JDK : jdk-10.0.2  
Browser : Chrome ( Version 75.0.3770.100 (Official Build))  
Browser : IE (Version : 11.557.177663.0)

We are generating the signature and initiating the zoom meeting by code provided in [https://marketplace.zoom.us/docs/sdk/native-sdks/Web-Client-SDK/tutorial/generate-signature](https://marketplace.zoom.us/docs/sdk/native-sdks/Web-Client-SDK/tutorial/generate-signature) URL.

For one colleague user, it is working fine on his system. However it is not working for rest of other users. We have checked ALL required configuration parameters like Java version, source files, Jquery version, OS version, browser version, etc, same configuration is present for me and other users as well.

We have also added the 5 sec delay using setTimeOut() function but no luck.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/0/01f2d89b4fce744ec130a252d6046b6dbb97781c.png)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/8e8ba8ca2606859958806a3550acac0c578763a8.png)

Kindly suggest in case of I am missing anything in order to run the zoom meeting application and let me know in case of more details required…

Thanks,  
Manoj Sarode.

---

<div class="post-metadata">

**Author:** ![magh92](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/magh92/32/1171_2.png) [@magh92](https://devforum.zoom.us/u/magh92)\
**Post date:** [July 12, 2019, 2:15pm UTC](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805/9 "2019-07-12T14:15:25Z")

</div>

Of course, I’m using windows 8.1 and Google chrome Versión 75.0.3770.100 (Build oficial) (64 bits)

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 12, 2019, 3:43pm UTC](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805/10 "2019-07-12T15:43:25Z")

</div>

Thank you both for this info, I am testing on each respective environment now.

Quick question, are you using JWT App Type API credentials or SDK App Type API credentials?

---

<div class="post-metadata">

**Author:** ![magh92](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/magh92/32/1171_2.png) [@magh92](https://devforum.zoom.us/u/magh92)\
**Post date:** [July 12, 2019, 4:59pm UTC](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805/11 "2019-07-12T16:59:08Z")

</div>

I´m using JWT App Type API credentials

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 12, 2019, 5:05pm UTC](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805/12 "2019-07-12T17:05:01Z")

</div>

Thanks, @magh92 I was able to reproduce using the same versions of Windows and Chrome as you.

I am working on a solution now.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 12, 2019, 7:58pm UTC](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805/13 "2019-07-12T19:58:11Z")

</div>

Oddly enough, it started working for me with no code changes.

Are you both still experiencing the issue?

---

<div class="post-metadata">

**Author:** ![magh92](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/magh92/32/1171_2.png) [@magh92](https://devforum.zoom.us/u/magh92)\
**Post date:** [July 12, 2019, 8:10pm UTC](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805/14 "2019-07-12T20:10:02Z")

</div>

Yeii now works for me too, thank you so much for help me

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 12, 2019, 8:25pm UTC](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805/15 "2019-07-12T20:25:26Z")

</div>

You are welcome!

Feel free to reach out again if any issues arise!

Thanks!

---

<div class="post-metadata">

**Author:** ![manoj.sarode](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@manoj.sarode](https://devforum.zoom.us/u/manoj.sarode)\
**Post date:** [July 13, 2019, 4:18am UTC](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805/16 "2019-07-13T04:18:12Z")

</div>

> [@tommy](#):
>
> Quick question, are you using JWT App Type API credentials or SDK App Type API credentials?

Hi Tommy,

I am using jsonwebtoken i.e. JWT API type of credentials. I am still getting the above error. Earlier I was thinking that it is because of time which is required to generate the signature causing the problem. As signature creation part is in Java file and we are initiating the meeting using JS / JSP file by calling the Init / Join method using the same signature. We tried to pass the current time so that there is no problem with time but still it is giving me same error. I believe that there might be something missing in terms of any kind of configuration OR it might be possible that the code provided on above URL is works fine for some time, sometimes not, not sure.

I would like to know that What does mean it ‘The Signature has expired’, I mean in which condition it comes ?.

Can you suggest what needs to be done to resolve this issue ?

Thanks,  
Manoj Sarode.

---

<div class="post-metadata">

**Author:** ![manoj.sarode](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@manoj.sarode](https://devforum.zoom.us/u/manoj.sarode)\
**Post date:** [July 13, 2019, 1:44pm UTC](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805/17 "2019-07-13T13:44:56Z")

</div>

**Hi Tommy,**

I have one question, for the above error, is timezone / timestamp matters for generating the signature?

Let me share you today’s experience with you.

While doing the analysis, we have compared the time present on mine system VS time present on the colleague system where this application is running fine. There was difference of 7 mins. Mine system is 7 mins ahead as compare to the other one.

We did many R&D changes to calculate the signature. Later on we had minuses the 7 mins (converting to millisecond) from the current system time while generating the signature and ran the code. It was started working properly.

Now, considering the above scenario, I have below questions :

1] How we can identify whether the particular signature is valid for certain time ? OR Expiry logic ?  
2] Is there any time conversion / Offset is required to generate the signature ?  
3] How signature gets validated on zoom server, I mean what kind of parameter consider while checking the signature in order to run the zoom meeeting ?

Kindly waiting for valuable inputs.

Please Note : While doing the testing on same code, we extra error i.e. “3005 - clear attendees”. These was often occurred. For your reference, I have provided you the below image.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/e/ec334b564630f3e72db285afb075c74736935cf0.png)

Thanks,  
Manoj Sarode.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 15, 2019, 7:00pm UTC](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805/18 "2019-07-15T19:00:59Z")

</div>

Hey @manoj.sarode,

Can you share the code you use to generate the signature? (don’t include any API creds)

Thanks.

---

<div class="post-metadata">

**Author:** ![manoj.sarode](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@manoj.sarode](https://devforum.zoom.us/u/manoj.sarode)\
**Post date:** [July 16, 2019, 6:10am UTC](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805/19 "2019-07-16T06:10:39Z")

</div>

**Hi Tommy / Zoom Team,**

Please find the below code. As I had said in trail mail, this code we have taken from below URL. The difference is only the time difference calculation :

[https://marketplace.zoom.us/docs/sdk/native-sdks/Web-Client-SDK/tutorial/generate-signature](https://marketplace.zoom.us/docs/sdk/native-sdks/Web-Client-SDK/tutorial/generate-signature) -\> JAVA tab / section code

\*\*Method which is generating the Signature : \*\*

```java
public String generateSignature(String asApiKey, String asApiSecret, String asMeetingNumber, Integer aIRole)
	{
		try
		{
			Mac hasher = Mac.getInstance("HmacSHA256");
			int liMin	= 10;
			long llOffsetMinMs = (long)liMin*60*1000;
			long llCurrentTimeMs = System.currentTimeMillis();
			llCurrentTimeMs = llCurrentTimeMs - llOffsetMinMs;
			String lsCurrentTimeInMilliseconds = Long.toString(llCurrentTimeMs);

			String lsMsg = String.format("%s%s%s%d", asApiKey, asMeetingNumber, lsCurrentTimeInMilliseconds, aIRole);
			hasher.init(new SecretKeySpec(asApiSecret.getBytes(), "HmacSHA256"));

			String lsMessage = Base64.getEncoder().encodeToString(lsMsg.getBytes());
			byte[] hash = hasher.doFinal(lsMessage.getBytes());
			String lsHashBase64Str = DatatypeConverter.printBase64Binary(hash);
			String lsTmpStr = String.format("%s.%s.%s.%d.%s", asApiKey, asMeetingNumber, lsCurrentTimeInMilliseconds, aIRole, lsHashBase64Str);
			String lsEncodedString = Base64.getEncoder().encodeToString(lsTmpStr.getBytes());

			return lsEncodedString.replaceAll("\\=+$", "");
	  	}
	  	catch (NoSuchAlgorithmException e) {}
	  	catch (InvalidKeyException e) {}
		return "";
	}

```

Kindly let me know in case of more details require, we are waiting inputs for the concerns asked in last discussion.

**Thanks,**

Manoj Sarode.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [July 16, 2019, 4:46pm UTC](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805/20 "2019-07-16T16:46:29Z")

</div>

Thanks @manoj.sarode,

To confirm you are no longer getting error: “The signature has expired.” because you are changing the time by 7 minutes.

Now you are getting new error: 3005 clear attendees?

Also I am working on getting your 3 questions answered.  
1] How we can identify whether the particular signature is valid for certain time ? OR Expiry logic ?  
2] Is there any time conversion / Offset is required to generate the signature ?  
3] How signature gets validated on zoom server, I mean what kind of parameter consider while checking the signature in order to run the zoom meeeting ?

Thanks for your patience!

[Next page](https://devforum.zoom.us/t/zoommtg-join-returns-the-signature-has-expired-help-me-please/4805.md?page=2)
