-
Notifications
You must be signed in to change notification settings - Fork 119
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
i meet https error? use portal bind Self-signed certificate? #289
Comments
do you encounter an error/warning when you attempt to visit the portal using 'https' in the browser? |
i used Self-signed certificate to my arcgis portal, I had solve it by change code, fetchOptions = {
method: httpMethod,
agent:new https.Agent({rejectUnauthorized: false}), // ++++
// ensures behavior mimics XMLHttpRequest. needed to support sending IWA cookies
credentials: "same-origin"
}; |
nice work. |
I'm facing the same problem here with 4.x but the proposed solution seems to require overriding request.js, which kind of is making using the whole library obsolete. From comments around other issues (unfortunately browsed thru too many and closed them already) I saw a comment on an issue that you're planning to allow passing fetch options from the calling method. Is that already a thing? That's the context I need to deal with that.
Of course better would be to be able to define the expected Currently I'm using raw node http libraries, where I can customize such things directly, using arcgis rest js, however, would make everything more convenient... |
error:
FetchError: request to https://[server]/portal/sharing/rest/search failed, reason: unable to verify the first certificate
I had try cas,but it not work
require('ssl-root-cas').inject();
var rootCas = require('ssl-root-cas/latest').create();
rootCas
.addFile(__dirname + '/ssl/pem.pem')
;
require('https').globalAgent.options.ca = rootCas;
The text was updated successfully, but these errors were encountered: