You will get the "signature invalid" error if your local certificate
and the certificate uploaded to Google are out of sync.  There
unfortunately isn't a way to check the certificate currently loaded
for a domain.  The best option for fixing this is to re-generate the
certificate and PEM file, and re-install them into your app and the
Manage Domains Tool.  Uploading a new certificate in the Manage
Domains Tool replaces the exiting certificate.

I don't believe that Google validates the domain name for OAuth
requests, so you should be able to port your certificate to a
different server with a different domain name without any issues.

I'm not positive if this affects OAuth, but the GData client libraries
silently fail in certain circumstances if the certificate can't be
loaded, which causes the request to be improperly signed.  One way to
check if the certificate is being loaded properly is to output the
private key before you pass it to the OAuth signer.

Paul


On Oct 20, 4:12 pm, CTISTeam <[email protected]> wrote:
> Hi, Paul,
>
> As suggested by you, we copied and pasted URL generated in browser, we
> are getting following message "signature_invalid" as response.
>
> So does that mean some problem with signature or certificate ?
>
> Few questions...
>
> 1. Is there any way to check / get the certificate uploaded to Google
> at time of domain registration?
> 2. If we change the server keeping same domain, impact certificate?
>
> Thanks,
> CTISTeam
>
> On Oct 18, 6:05 pm, "Paul (Google)" <[email protected]> wrote:
>
>
>
>
>
>
>
> > You should be able to look at the response body to see more information
> > about the error, which would look like "the token is invalid"
> > or "invalid signature". If you past the URL into a browser soon after
> > you generate it in your code, the browser should display the root
> > cause. If you wait too long, you'll get an error about the time-stamp.
>
> > The scope parameter isn't part of the OAuthGetAccessToken request, and
> > would probably be good to omit for debugging.
>
> > Paul

-- 
You received this message because you are subscribed to the Google Groups 
"Google Health Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/googlehealthdevelopers?hl=en.

Reply via email to