Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Signature OVH' s SMS #446

Open
HADDADENICAR opened this issue Jan 27, 2020 · 0 comments
Open

Invalid Signature OVH' s SMS #446

HADDADENICAR opened this issue Jan 27, 2020 · 0 comments

Comments

@HADDADENICAR
Copy link

I am trying to send SMS using OVH'SMS service , following this docs.

when i test the send with post methode for the url https://eu.api.ovh.com/1.0/sms/sms-zj16668-1/jobs

i get an

errorCode:INVALID_SIGNATURE

the signature is calculated as below :

        String signature = "$1$" + HashSHA1(AS + "+" + CK + "+" + METHOD + "+" + QUERY + "+" + BODY + "+" + TSTAMP);

with Get method(no Body) i get a successful result , however when i change to use a Post method with a Body ,the above error is triggered.

this is the Body i pass to signature :

        string BODY = @"{  ""receivers"": [ ""+33601020304"" ], ""message"": ""Test SMS OVH"", ""senderForResponse"": true}";

what i m doing wrong ?

#update
i found in the ovh community a similar issue and the solution where to use TLS1.2 PROTOCOL , however even after adding this proposed line of code:

 ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | (SecurityProtocolType)768 | (SecurityProtocolType)3072;

I am still getting the same error ! ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant