# Create signature in c# returns "invalid signature"

**URL:** <https://devforum.zoom.us/t/create-signature-in-c-returns-invalid-signature/41660>\
**Category:** Web\
**Created:** [January 27, 2021, 5:47am UTC](https://devforum.zoom.us/t/create-signature-in-c-returns-invalid-signature/41660 "2021-01-27T05:47:04Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![amc](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@amc](https://devforum.zoom.us/u/amc)\
**Post date:** [January 27, 2021, 5:47am UTC](https://devforum.zoom.us/t/create-signature-in-c-returns-invalid-signature/41660/1 "2021-01-27T05:47:04Z")

</div>

**Description**  
I am using framework .NET 5.0 to host a meeting in Zoom.  
WebSDK is used.  
Zoom pro account is used  
Jwt already created and used

There’s an error “invalid signature” when it is created using C# example. I have tried create the meeting manually in Zoom Account, then join the meeting and the error happen again.

**Error**  
Invalid signature when C# example  
When I use ZoomMtg.generateSignature in client works fine.

**Which version?**  
1.8.6

\*\*Device

- Browser: Chrome

I have followed these links without luck:

> [@Invalid Signature C#](https://devforum.zoom.us/t/invalid-signature-c/6542/3):
>
> Hi Tommy, Thanks for the reply, I’ve put my code into a github project. It is a .net core 3.0 server so you must have that installed first. ([https://dotnet.microsoft.com/download/dotnet-core/3.0](https://dotnet.microsoft.com/download/dotnet-core/3.0)) First clone the app: git clone [https://github.com/DanielPepka/NetCoreZoomUs](https://github.com/DanielPepka/NetCoreZoomUs) Then modify the zoom controller file to have an api key / secret as well as an email address that is associated with that account. (“TODO - SET THIS”) From there you can either launch the app with visual studio or thro…

> [@Invalid signature after changing app key](https://devforum.zoom.us/t/invalid-signature-after-changing-app-key/31099/7):
>
> Hey @lance, For us to debug this further, can you please share the account # or email of the Zoom account who owns the JWT Token? Please send it to [developersupport@zoom.us](mailto:developersupport@zoom.us) with a link to this thread. Thanks, Tommy

Any help will be great

Thanks

---

<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:** [January 27, 2021, 6:01pm UTC](https://devforum.zoom.us/t/create-signature-in-c-returns-invalid-signature/41660/2 "2021-01-27T18:01:41Z")

</div>

Hey @amc ,

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

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![amc](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@amc](https://devforum.zoom.us/u/amc)\
**Post date:** [January 27, 2021, 6:37pm UTC](https://devforum.zoom.us/t/create-signature-in-c-returns-invalid-signature/41660/3 "2021-01-27T18:37:32Z")

</div>

Hello @tommy the signature is:

These are the error messages:

 ![erro1](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/7/2732627ed6102e6be9ba0a4c4b680312c6d6f7bb.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![amc](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@amc](https://devforum.zoom.us/u/amc)\
**Post date:** [January 28, 2021, 6:51pm UTC](https://devforum.zoom.us/t/create-signature-in-c-returns-invalid-signature/41660/5 "2021-01-28T18:51:36Z")

</div>

Any idea, seems the signature added here is gone. I share another one:

Still having problems to host or join a meeting. This signature is to create one as a host.

Thanks!!

---

<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:** [January 29, 2021, 8:30pm UTC](https://devforum.zoom.us/t/create-signature-in-c-returns-invalid-signature/41660/6 "2021-01-29T20:30:53Z")

</div>

Hey @amc ,

Your signature looks correct. Let me ask you this, are you trying to start a meeting you own, or a meeting that is owned outside of your account?

More info here:

> [@Start a meeting on behalf of a user - Web SDK with OAuth](https://devforum.zoom.us/t/start-a-meeting-on-behalf-of-a-user-web-sdk-with-oauth/27245/2):
>
> Hey @mayank.patel, We discourage asking customers to share their JWT Credentials with developers. I do see the headache here how you can’t use OAuth to start meetings for a user via the Web SDK since the Web SDK can only start meetings owned by the same account as the JWT App. I will share this feedback with our team and see if we can expand the Web SDK authentication to allow authorized users to start their own meetings. (CS-2206) In the meantime, I suggest having the host of the meeting s…

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![amc](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@amc](https://devforum.zoom.us/u/amc)\
**Post date:** [January 30, 2021, 5:48am UTC](https://devforum.zoom.us/t/create-signature-in-c-returns-invalid-signature/41660/7 "2021-01-30T05:48:50Z")

</div>

Hi @tommy I have tried start (host) then join a meeting using my API Key and API Secret.

Also I have tried join a meeting created manually using zoom portal

Using a schedule meeting:

 ![111](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/3/0/3030f9a6ceab84f12bfeee11e3fe94257a543b4a.png)

Using Host a meeting directly in the menu:

 ![2222](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/3/b3e1db7b21594ec0e63765072bc1b2ad8f88ba11.png)

Both without success yet.

Please your comments

Thanks!

---

<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:** [February 1, 2021, 9:20pm UTC](https://devforum.zoom.us/t/create-signature-in-c-returns-invalid-signature/41660/8 "2021-02-01T21:20:53Z")

</div>

Hey @amc ,

I am going to send you a private message so we can assist further.

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:** [February 2, 2021, 6:09pm UTC](https://devforum.zoom.us/t/create-signature-in-c-returns-invalid-signature/41660/9 "2021-02-02T18:09:01Z")

</div>

For others reference, I am sharing the solution here per @amc :

I just saw in the [documentation](https://marketplace.zoom.us/docs/sdk/native-sdks/web/build/signature) that these couple of lines were added:

```auto
string msgHashPreHmac = System.Convert.ToBase64String (messageBytesTest);
byte[] messageBytes = encoding.GetBytes (msgHashPreHmac);

```

So I added and tested, now I am able to host and join meetings 🕶 !

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:** [March 5, 2021, 4:09am UTC](https://devforum.zoom.us/t/create-signature-in-c-returns-invalid-signature/41660/10 "2021-03-05T04:09:04Z")

</div>

Closed on March 5, 2021, 4:09am UTC

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