titled sslKey.pem and sslCert.pem. I did this by creating a self-signed key described in OpenSSL commands and tips http://how2ssl.com/articles/openssl_commands_and_tips/ .
I needed to set the paths to my PEM files as well as the ldnode module. It was done wit h the following code (simple.js):
var ldnode = require('../../../usr/local/lib/node_modules/ldnode')
var ldp = ldnode.createServer({
key: './sslKey.pem',
cert: './sslCert.pem',
webid: true
})
ldp.listen(3000, function() {
// Started Linked Data Platform
})
When this was running from the bash CLI in Ubuntu 15.04 with node simple.js at the prompt I got a blinking cursor. I am assuming that the code did what it supposed to since it generated no errors. Of course, I had no way to peer inside as it spit nothing to the screen or a browser. http://localhost:3000 was inacessible. I will have to review node behaviour, such as through Ryan Dahl's tutorial, https://www.youtube.com/watch?v=eqlZD21DME0 , and through OK Coders JavaScript and Express App demo https://github.com/okcoders/ok-coders-summer-2014 as well as OK Coders YouTube videos https://www.youtube.com/channel/UCR_oQSBmHvtq8KGOWtJWygA.
.
No comments:
Post a Comment