# Invalid signature 1.8.0

**URL:** <https://devforum.zoom.us/t/invalid-signature-1-8-0/30156>\
**Category:** Web\
**Created:** [September 14, 2020, 2:02pm UTC](https://devforum.zoom.us/t/invalid-signature-1-8-0/30156 "2020-09-14T14:02:34Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![zulu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zulu/32/15247_2.png) [@zulu](https://devforum.zoom.us/u/zulu)\
**Post date:** [September 14, 2020, 2:02pm UTC](https://devforum.zoom.us/t/invalid-signature-1-8-0/30156/1 "2020-09-14T14:02:34Z")

</div>

**Description**  
I’ve generated the signature via the php code in the documentation. This php generated code is accessed by the front end of the site via a webhook. On load I import the zoom websdk into my app & then run the following:

```
			ZoomMtg.preLoadWasm();
			ZoomMtg.prepareJssdk();

			ZoomMtg.init({
				leaveUrl: 'https://local.local/example-page/',
				isSupportAV: true,
				success: (success) => {
					console.log(success)

					ZoomMtg.join({
						signature: data.signature,
						meetingNumber:,
						userName: 'dave1',
						apiKey: 'TheAPIKey',
						passWord : 'MEETINGPASS',
						success: (success) => {
							console.log(success)
						},
						error: (error) => {
							console.log(error)
						}
					})

				},
				error: (error) => {
					console.log(error)
				}
			})

```

**Error**  
The error returned to me is:

1. errorCode: 3712
2. errorMessage: “Signature is invalid.”
3. method: “join”
4. result: “Invalid signature.”
5. status: false

**Which version?**  
1.8.0

---

<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:** [September 15, 2020, 10:09pm UTC](https://devforum.zoom.us/t/invalid-signature-1-8-0/30156/2 "2020-09-15T22:09:05Z")

</div>

Hey @zulu,

Can you please share your Web SDK signature to [developersupport@zoom.us](mailto:developersupport@zoom.us) for a test meeting so I can help debug? 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![zulu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zulu/32/15247_2.png) [@zulu](https://devforum.zoom.us/u/zulu)\
**Post date:** [September 16, 2020, 8:19am UTC](https://devforum.zoom.us/t/invalid-signature-1-8-0/30156/3 "2020-09-16T08:19:25Z")

</div>

[signature redacted]

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [September 17, 2020, 9:43pm UTC](https://devforum.zoom.us/t/invalid-signature-1-8-0/30156/4 "2020-09-17T21:43:30Z")

</div>

Hey @zulu,

Thanks for providing that!

In checking your role, timestamp, and meeting ID—those all look okay at first glance. Can you confirm that you’re using a [JWT App Type for the API key and secret](https://marketplace.zoom.us/docs/guides/getting-started/app-types/create-jwt-app)?

Additionally, how are you generating your timestamp?

Let me know when you have a chance!  
-Will

---

<div class="post-metadata">

**Author:** ![zulu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zulu/32/15247_2.png) [@zulu](https://devforum.zoom.us/u/zulu)\
**Post date:** [September 18, 2020, 9:15am UTC](https://devforum.zoom.us/t/invalid-signature-1-8-0/30156/5 "2020-09-18T09:15:51Z")

</div>

Yep, the credentials used are JWT.

Here’s my signature generation function (in php), pulled from the docs.

```auto
public function generate_signature( $api_key, $api_secret, $meeting_number, $role) {

	$time = time() * 1000 - 30000;//time in milliseconds (or close enough)
			
	$data = base64_encode($api_key . $meeting_number . $time . $role);
			
	$hash = hash_hmac('sha256', $data, $api_secret, true);
			
	$_sig = $api_key . "." . $meeting_number . "." . $time . "." . $role . "." . base64_encode($hash);
			
	//return signature, url safe base64 encoded
	return rtrim(strtr(base64_encode($_sig), '+/', '-_'), '=');
}
```

---

<div class="post-metadata">

**Author:** ![creativepanda9102](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/creativepanda9102/32/15559_2.png) [@creativepanda9102](https://devforum.zoom.us/u/creativepanda9102)\
**Post date:** [September 18, 2020, 10:32am UTC](https://devforum.zoom.us/t/invalid-signature-1-8-0/30156/6 "2020-09-18T10:32:26Z")

</div>

![dfdffdgdfgf](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/5/501776fbc99d97f3b2192e3eacb88625c4fc3668.png)

same problem on angular 9

signature

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [September 21, 2020, 7:47pm UTC](https://devforum.zoom.us/t/invalid-signature-1-8-0/30156/7 "2020-09-21T19:47:46Z")

</div>

Hey @zulu,

As a next step, can you also ensure that your system’s time settings are also synced properly according to this post:

> [@Join meeting timeout or signature expired](https://devforum.zoom.us/t/join-meeting-timeout-or-signature-expired/8616/14):
>
> Hi @vijayk.kannan, For the signature issue, make sure to use the system time and make sure the time syncs with world time. Generate a signature by ZoomMtg.generateSignature. - Example of syncing your machine time using window 10 [e1b2c451-e93c-4238-b464-ead68f8cca69] Example for using Mac Generate a signature by customer web backend with sync server time. We are currently investigation to see if there is a sync issue on our end as well. We’ll follow up as soon as we’re done lo…

This can cause issues occasionally as well.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [September 21, 2020, 7:54pm UTC](https://devforum.zoom.us/t/invalid-signature-1-8-0/30156/8 "2020-09-21T19:54:51Z")

</div>

Hey @creativepanda9102,

Are you trying to start this meeting or join this meeting? Have you also confirmed that you’re the owner of the account/app that the JWT key is associated with?

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![zulu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zulu/32/15247_2.png) [@zulu](https://devforum.zoom.us/u/zulu)\
**Post date:** [September 22, 2020, 10:04am UTC](https://devforum.zoom.us/t/invalid-signature-1-8-0/30156/9 "2020-09-22T10:04:38Z")

</div>

Hi Will,

This setting is the same on my MAC as the post, I’ve also forced it to generate the time in UTC format, which it is returning correctly. Still getting the same invalid signature error.

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [September 24, 2020, 4:42pm UTC](https://devforum.zoom.us/t/invalid-signature-1-8-0/30156/10 "2020-09-24T16:42:15Z")

</div>

Hey @zulu,

Apologies for not catching this earlier, but I noticed in your original post you referenced “method: join” —to clarify, you’re currently passing in role 1 to your signature (for starting/host). If you’re using this signature for joining, can you ensure you’re passing role 0 in your signature?

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![zulu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zulu/32/15247_2.png) [@zulu](https://devforum.zoom.us/u/zulu)\
**Post date:** [September 29, 2020, 8:20am UTC](https://devforum.zoom.us/t/invalid-signature-1-8-0/30156/11 "2020-09-29T08:20:27Z")

</div>

When generating the signature I am currently passing 0.

```auto
$signature = $this->generate_signature( $key, $secret, $meeting_id, 0 );
```

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [September 30, 2020, 6:40pm UTC](https://devforum.zoom.us/t/invalid-signature-1-8-0/30156/12 "2020-09-30T18:40:28Z")

</div>

Hey @zulu,

Thank you for that.

To confirm—do you have at least a [Pro Zoom Account](https://zoom.us/pricing)? This is required to use the SDK, which could be the reason you are seeing that error. If you do not have a Pro account, upgrading should resolve this issue.

Let me know—thanks!  
Will

---

<div class="post-metadata">

**Author:** ![zulu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zulu/32/15247_2.png) [@zulu](https://devforum.zoom.us/u/zulu)\
**Post date:** [October 12, 2020, 1:12pm UTC](https://devforum.zoom.us/t/invalid-signature-1-8-0/30156/13 "2020-10-12T13:12:41Z")

</div>

Hey Wil,

Just to update this thread, the issue is now resolved. I was unaware that you needed a pro zoom account in order to use the sdk.

James.

---

<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:** [October 13, 2020, 6:13pm UTC](https://devforum.zoom.us/t/invalid-signature-1-8-0/30156/14 "2020-10-13T18:13:51Z")

</div>

Hey @zulu,

Happy to hear you got the issue sorted out! 🙂

Thanks,  
Tommy

---

<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:** [November 13, 2020, 4:14am UTC](https://devforum.zoom.us/t/invalid-signature-1-8-0/30156/15 "2020-11-13T04:14:14Z")

</div>

Closed on November 13, 2020, 4:14am UTC

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