We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Do you have any examples of using HTTPS while supplying certificates?
I found an example using the https node module, but I'd like to use o.js to avoid crafting the odata URLs manually.
https
o.js
const https = require("https"); const fs = require("fs"); const requestParams = { hostname: "<the hostname>", port: 44300, key: fs.readFileSync("path/to/client-key.pem"), cert: fs.readFileSync("path/to/client-crt.pem"), ca: fs.readFileSync("path/to/ca-crt.pem"), rejectUnauthorized : false, path: "<the OData URL>", method: "<GET/POST/DELETE etc>" }; const httpsReq = https.request(requestParams, httpsRes => { // Handle the response here }); httpsReq.end();
The text was updated successfully, but these errors were encountered:
I got an answer over on Stack Overflow: https://stackoverflow.com/a/75745957/344029
Sorry, something went wrong.
No branches or pull requests
Do you have any examples of using HTTPS while supplying certificates?
I found an example using the
https
node module, but I'd like to useo.js
to avoid crafting the odata URLs manually.The text was updated successfully, but these errors were encountered: