# "Signuture is invalid" CDN 1.7.10 JS Viewer

**URL:** <https://devforum.zoom.us/t/signuture-is-invalid-cdn-1-7-10-js-viewer/24302>\
**Category:** Web\
**Created:** [July 16, 2020, 12:11pm UTC](https://devforum.zoom.us/t/signuture-is-invalid-cdn-1-7-10-js-viewer/24302 "2020-07-16T12:11:39Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![j.amelsberg](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/j.amelsberg/32/11997_2.png) [@j.amelsberg](https://devforum.zoom.us/u/j.amelsberg)\
**Post date:** [July 16, 2020, 12:11pm UTC](https://devforum.zoom.us/t/signuture-is-invalid-cdn-1-7-10-js-viewer/24302/1 "2020-07-16T12:11:40Z")

</div>

Hi

I’m trying to use the 1.7.10 JS viewer (CDN version) ([https://github.com/zoom/sample-app-web](https://github.com/zoom/sample-app-web)), but I get error “Signuture is invalid” when I enter real meeting number, example (\*\*\*\*\*\*\*\*\*\*\*, no password, no email, attendee ).

It would be great if you can help me with this.

thanks for future answer !

jan

\*This post has been edited to remove any meeting / webinar IDs

---

<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 20, 2020, 8:13pm UTC](https://devforum.zoom.us/t/signuture-is-invalid-cdn-1-7-10-js-viewer/24302/2 "2020-07-20T20:13:44Z")

</div>

Hey @j.amelsberg,

Please share your signature to [developersupport@zoom.us](mailto:developersupport@zoom.us) so I can help you debug.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![j.amelsberg](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/j.amelsberg/32/11997_2.png) [@j.amelsberg](https://devforum.zoom.us/u/j.amelsberg)\
**Post date:** [July 21, 2020, 8:23am UTC](https://devforum.zoom.us/t/signuture-is-invalid-cdn-1-7-10-js-viewer/24302/3 "2020-07-21T08:23:18Z")

</div>

hello, @tommy my signature is next:  
signature=  
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:** [July 22, 2020, 6:16pm UTC](https://devforum.zoom.us/t/signuture-is-invalid-cdn-1-7-10-js-viewer/24302/4 "2020-07-22T18:16:25Z")

</div>

Hey @j.amelsberg,

It appears you are using your SDK App Key and Secret to generate the signature. You need to use your JWT Key and Secret app to generate the signature.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![j.amelsberg](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/j.amelsberg/32/11997_2.png) [@j.amelsberg](https://devforum.zoom.us/u/j.amelsberg)\
**Post date:** [July 22, 2020, 10:01pm UTC](https://devforum.zoom.us/t/signuture-is-invalid-cdn-1-7-10-js-viewer/24302/5 "2020-07-22T22:01:55Z")

</div>

hello @tommy,

it works. 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:** [July 24, 2020, 5:40pm UTC](https://devforum.zoom.us/t/signuture-is-invalid-cdn-1-7-10-js-viewer/24302/6 "2020-07-24T17:40:41Z")

</div>

Happy to hear you got it working! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![nhat.nguyen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nhat.nguyen/32/11790_2.png) [@nhat.nguyen](https://devforum.zoom.us/u/nhat.nguyen)\
**Post date:** [August 17, 2020, 3:27pm UTC](https://devforum.zoom.us/t/signuture-is-invalid-cdn-1-7-10-js-viewer/24302/7 "2020-08-17T15:27:53Z")

</div>

Hi @tommy

I tried to use JWT key but still got ‘Signature is invalid’

````
```
require 'Base64'
require 'openssl'

def get_signature(options = {})
  time = (Time.now.to_i * 1000 - 30000).to_s
  data = Base64.urlsafe_encode64(options[:api_key] + options[:meeting_number] + time + options[:role].to_s)
  hash = Base64.urlsafe_encode64(OpenSSL::HMAC.digest(OpenSSL::Digest.new('sha256'), options[:api_secret], data))
  tempStr = options[:api_key] + '.' + options[:meeting_number] + '.' + time + '.' + options[:role].to_s + '.' + hash
  return Base64.urlsafe_encode64(tempStr).gsub('+', '-').gsub('/', '_').gsub(/#{Regexp.escape('=')}+$/, '')
end

data = {
  'meeting_number': '99999999',
  'role': 0,
  'api_secret': 'xxxx',
  'api_key': 'xxxx'
}

puts get_signature(data)
```

````

I use this code to generate signature on server. and pass it to client.

But when I use [https://github.com/zoom/websdk-sample-signature-node.js](https://github.com/zoom/websdk-sample-signature-node.js). I got error: ‘The service is temporarily offline’

If I use JS, it works. Hzz. I don’t know why. Ruby code is something wrong?

```
ZoomMtg.generateSignature({
      apiKey: xxxxxxx,
      apiSecret: xxxxxxx,
      role: parseInt(meetingRole, 10),
      meetingNumber: meetingId,
      success: function (res) {
        meetingConfig = {
          apiKey: xxxxxxxx,
          meetingNumber: meetingId,
          userName: username,
          passWord: meetingPwd,
          leaveUrl: "/meetings",
          role: parseInt(meetingRole, 1),
          userEmail: username,
          lang: 'en-US',
          signature: res.result,
          china: false
        };

        beginJoin(meetingConfig);
      },
    });
```

---

<div class="post-metadata">

**Author:** ![nhat.nguyen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nhat.nguyen/32/11790_2.png) [@nhat.nguyen](https://devforum.zoom.us/u/nhat.nguyen)\
**Post date:** [August 18, 2020, 4:13am UTC](https://devforum.zoom.us/t/signuture-is-invalid-cdn-1-7-10-js-viewer/24302/8 "2020-08-18T04:13:09Z")

</div>

@tommy Please help. I must do it asps.

---

<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:** [August 19, 2020, 3:32am UTC](https://devforum.zoom.us/t/signuture-is-invalid-cdn-1-7-10-js-viewer/24302/9 "2020-08-19T03:32:37Z")

</div>

Hey @nhat.nguyen,

Please share your [Web SDK signature](https://marketplace.zoom.us/docs/sdk/native-sdks/web/essential/signature) for a test meeting to [developersupport@zoom.us](mailto:developersupport@zoom.us) so I can help debug.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![nhat.nguyen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nhat.nguyen/32/11790_2.png) [@nhat.nguyen](https://devforum.zoom.us/u/nhat.nguyen)\
**Post date:** [August 19, 2020, 7:04am UTC](https://devforum.zoom.us/t/signuture-is-invalid-cdn-1-7-10-js-viewer/24302/10 "2020-08-19T07:04:09Z")

</div>

```
def get_signature(options = {})
  time = (Time.now.to_i * 1000 - 30000).to_s
  data = Base64.urlsafe_encode64(options[:api_key] + options[:meeting_number] + time + options[:role].to_s)
  hash = Base64.urlsafe_encode64(OpenSSL::HMAC.digest(OpenSSL::Digest.new('sha256'), options[:api_secret], data))
  tempStr = options[:api_key] + '.' + options[:meeting_number] + '.' + time + '.' + options[:role].to_s + '.' + hash
  return Base64.urlsafe_encode64(tempStr).gsub('+', '-').gsub('/', '_').gsub(/#{Regexp.escape('=')}+$/, '')
end

```

I change `Base64.urlsafe_encode64` to `Base64.strict_encode64` and It works. Do you have any idea about this problem?

Can you check it again and update your tutorial.

@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:** [August 19, 2020, 10:06pm UTC](https://devforum.zoom.us/t/signuture-is-invalid-cdn-1-7-10-js-viewer/24302/11 "2020-08-19T22:06:00Z")

</div>

Hey @nhat.nguyen,

Happy to hear you got it working. 🙂

What language are you using to generate the signature?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![nhat.nguyen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nhat.nguyen/32/11790_2.png) [@nhat.nguyen](https://devforum.zoom.us/u/nhat.nguyen)\
**Post date:** [August 21, 2020, 2:21am UTC](https://devforum.zoom.us/t/signuture-is-invalid-cdn-1-7-10-js-viewer/24302/12 "2020-08-21T02:21:41Z")

</div>

@tommy I used Ruby language.

---

<div class="post-metadata">

**Author:** ![hs99215](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/hs99215/32/11564_2.png) [@hs99215](https://devforum.zoom.us/u/hs99215)\
**Post date:** [August 24, 2020, 11:07am UTC](https://devforum.zoom.us/t/signuture-is-invalid-cdn-1-7-10-js-viewer/24302/13 "2020-08-24T11:07:18Z")

</div>

@tommy I am getting same issue with reactjs language .

---

<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:** [August 26, 2020, 7:55pm UTC](https://devforum.zoom.us/t/signuture-is-invalid-cdn-1-7-10-js-viewer/24302/14 "2020-08-26T19:55:58Z")

</div>

Hey @hs99215, @nhat.nguyen,

Please share your Web SDK signature for a test meeting to [developersupport@zoom.us](mailto:developersupport@zoom.us) so I can help debug the issue.

Thanks,  
Tommy
