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

'self signed certificate in certificate chain' SELF_SIGNED_CERT_IN_CHAIN #367

Open
vahidsamimi opened this issue Apr 1, 2022 · 0 comments

Comments

@vahidsamimi
Copy link

from today The OAuth getOAuthRequestTokenmethod is not working anymore and I recieve the following error:

code:'SELF_SIGNED_CERT_IN_CHAIN'
message:'self signed certificate in certificate chain'

I used this mothod like this:

consumer = new oauth.OAuth(
    "https://api.twitter.com/oauth/request_token",
    "https://api.twitter.com/oauth/access_token",
    twitter.consumer_key,
    twitter.consumer_secret,
    "1.0A",
    twitterCallBackUrl, // twitterCallBackUrl,
    "HMAC-SHA1"
  );

  consumer.getOAuthRequestToken(function (error, oauthToken, oauthTokenSecret, results) {
    if (error) { // here occurs the error >>> SELF_SIGNED_CERT_IN_CHAIN
      res.send("Error getting OAuth request token : " + inspect(error));  
    } else {
    // get request token
    }

Do you have any suggestions to solve this issue?

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