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

createCredentials() is deprecated, use tls.createSecureContext instead #1203

Closed
yagobski opened this issue Aug 31, 2015 · 3 comments
Closed
Assignees
Labels

Comments

@yagobski
Copy link

Hy,
I get this error :

createCredentials() is deprecated, use tls.createSecureContext instead

Please fix this in the file :
mysql/lib/Connection.js

line 310 :

 var credentials = Crypto.createCredentials({
      key        : this.config.ssl.key,
      cert       : this.config.ssl.cert,
      passphrase : this.config.ssl.passphrase,
      ca         : this.config.ssl.ca
    });
@dougwilson
Copy link
Member

What version of this library are you using? We cannot reproduce on the latest version with the latest version of Node.js. The code you are referring to only executes on Node.js 0.10 and below.

@dougwilson
Copy link
Member

Simply grepping for code does not prove that code is triggering the message. You can start you Node.js with the --trace-deprecation command line option to determine where that message is coming from.

@dougwilson
Copy link
Member

You can also find more information in #1154 where a user also just did a grep and found our code, but it turned out to be somewhere else and this module was not generating the message.

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

No branches or pull requests

2 participants