Looking for any examples of using certs with http-in and http-request.
It looks like it can be done by altering the http node-red package, but in case it's more complicated than it appears... (almost everything is with certs).
--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mark,
We already have support for setting up listening on https via the settings file. Details in the docs.
That should cover inbound requests into node-red (http-in node).
As mentioned at the start of this thread, we don't currently expose any options for outbound https requests (using the http-request node) You can use an https URL and it will attempt the request, but you cannot set any client certs or options. That is the bit we need to do more around and am open to suggestions as to what the minimal viable set of options are to be useful.
Nick
--
pfx
: Certificate, Private key and CA certificates to use for SSL.key
: Private key to use for SSL. Defaultnull
.passphrase
: A string of passphrase for the private key or pfx, plaintext for now, obfuscated at the UI and hashed internally for laterca
: An authority certificate or array of authority certificates to check the remote host against
cert
: Public x509 certificate to use.
You received this message because you are subscribed to a topic in the Google Groups "Node-RED" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/node-red/Eyc4rykP97k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to node-red+u...@googlegroups.com.
secureProtocol settings to cope with recent security vulnerabilities.
The rejectUnauthorized option is also needed if you want the option for verification to ignore the CA chain.
Julian, as I said, if you provide an https URL we already do the right thing and use the https module under the covers. This is only about what additional config options are needed.
Nick
curl -v -k -E client.pem:jJ3fF7dD0rR2rR3wW0eE2tT -H "Content-Type: application/json" -d "{ \"propertyId\": \"1\", \"sensorId\": \"1234567890\", \"value\": [[\"25\"]] }" https://demo.platform.com/iot/11223344
curl -v -k -E client.pem:<SECRET_KEY> -H "Content-Type: application/json" -d "<ENCODED_JSON_MESSAGE>" <REST_ENDPOINT>
Looking for any examples of using certs with http-in and http-request.
It looks like it can be done by altering the http node-red package, but in case it's more complicated than it appears... (almost everything is with certs).