Invalid signature with error code 3712

Hi, i have an error with the signature.

I use this function to generate it, but the error persist.

function generate_signature($api_key, $api_secret, $meeting_number, $role) {
	$time = time() * 1000 - 30000;
	$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 rtrim(strtr(base64_encode($_sig), '+/', '-_'), '=');

If i change the time, for example 30000 with 100000 i have the same error, but if i change time() * 1000 + 30000 return me ‘The signature has expired.’, and its correct, with an error code 3705, how can i solve this problem?

Which Web Client SDK version?
I am using the 1.9.5


Hey @prova9prova9prova9pr,

Thank you for reaching out to the Zoom Developer Forum. First, please make sure that you are using your API Key and Secret from your JWT App for your credentials.

You may also want to make sure that your server is using a UTC timezone when generating the signature.

Let me know if that helps.


Yes i solved the problem, thanks so much!

Great! I’m glad that helped! I’ll go ahead and close this topic now but feel free to open a new topic if you encounter any further issues or questions.