Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

createCredentials() is deprecated #41

Closed
yagobski opened this issue Aug 31, 2015 · 10 comments
Closed

createCredentials() is deprecated #41

yagobski opened this issue Aug 31, 2015 · 10 comments

Comments

@yagobski
Copy link

Hy I have :
slc -v
strongloop v5.0.0 (node v0.12.7)
├── [email protected] (15814c0)
├── [email protected] (9294f54)
├── [email protected] (bee617c)
├── [email protected] (1b220f7)
├── [email protected] (dbaa1a5)
├── [email protected] (f46e58f)
├── [email protected] (b17cbc0)
├─┬ [email protected] (539c0ce)
│ └── [email protected]
├── [email protected] (dec0654)
├── [email protected]
└── [email protected]

I get this error when i start using : node auth-server

createCredentials() is deprecated, use tls.createSecureContext instead
/Users/faouzi/Desktop/ournia/apiGateway/auth-server/node_modules/loopback-boot/lib/executor.js:330
var match = configVariable.match(DYNAMIC_CONFIG_PARAM);
^

raymondfeng pushed a commit that referenced this issue Aug 31, 2015
@yagobski
Copy link
Author

Thanks Raymond but i replaced the file ssl_cert.js buy your fix and still get same problem.

@raymondfeng
Copy link
Contributor

Can you find other occurrences of crypto.createCredentials in your app and deps? For example, grep -r crypto.createCredentials *.

@yagobski
Copy link
Author

Yes. I found another in this file

apiGateway/node_modules/loopback-connector-mysql/node_modules/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
});

2015-08-31 22:55 GMT+02:00 Raymond Feng [email protected]:

Can you find other occurrences of crypto.createCredentials in your app
and deps? For example, grep -r crypto.createCredentials *.


Reply to this email directly or view it on GitHub
#41 (comment)
.

@raymondfeng
Copy link
Contributor

You probably need to open an issue against node-mysql project.

Sent from my iPhone 6 Plus

On Aug 31, 2015, at 3:45 PM, yagobski [email protected] wrote:

Yes. I found another in this file

apiGateway/node_modules/loopback-connector-mysql/node_modules/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
});

2015-08-31 22:55 GMT+02:00 Raymond Feng [email protected]:

Can you find other occurrences of crypto.createCredentials in your app
and deps? For example, grep -r crypto.createCredentials *.


Reply to this email directly or view it on GitHub
#41 (comment)
.


Reply to this email directly or view it on GitHub.

@yagobski
Copy link
Author

Thanks i create issue here mysqljs/mysql#1203

@dougwilson
Copy link

Please do not direct users to grep their code; start the node program with the --trace-deprecation switch instead to determine cause.

@raymondfeng
Copy link
Contributor

@dougwilson Nice tip!

@dougwilson
Copy link

Oh, and hi @raymondfeng ! :) Sorry, I wrote that on a phone, so didn't come through as nice as I liked :) The mysql library gets these issues periodically because people just grep and they see the Node.js 0.6/0.8/0.10 compatibility code, even though it's not actually running when they get the message :/

@raymondfeng
Copy link
Contributor

@dougwilson Making sense.

@yagobski
Copy link
Author

yagobski commented Sep 1, 2015

I don't get deprecated warning i just get this error now :

node --trace-deprecation auth-server/

/apiGateway/auth-server/node_modules/loopback-boot/lib/executor.js:330
var match = configVariable.match(DYNAMIC_CONFIG_PARAM);

raymondfeng pushed a commit that referenced this issue Sep 8, 2015
 * Clone mapping entries during transpile (Raymond Feng)

 * Fix for #41 (Raymond Feng)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants