Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

Indexing a site requiring authentication + self-signed cert - SearchUnit - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
notnet
#1 Posted : Friday, January 29, 2016 10:24:24 PM
Rank: Member

Groups: Registered

Joined: 1/29/2016
Posts: 10
I'd like to test this against my site, but (a) the site requires authentication, and (b) my development site uses a self-signed certificate. How can I make this work? The indexer currently gives the following error:
"The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel."

Is it possible to validate the certificate in the configuration, or do I need to look into programmatic indexing?

Is it possible to provide login credentials for the indexer?
Jim
#2 Posted : Friday, January 29, 2016 11:17:20 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
We've not bumped into this before, so I'll have to look into it.

One potential option is to index using HTTP: and then there's a config param where you change all HTTP: results to HTTPS:, would that work for you?

Jim
-your feedback is helpful to other users, thank you!


Jim
#3 Posted : Saturday, January 30, 2016 6:38:19 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
In addition to what I wrote before, it looks like we can add a config setting to ignore certificate issues and index anyway.

We'll add that to the next version, but for now you can workaround it by calling this code from a plug-in.

ServicePointManager.ServerCertificateValidationCallback = ((sender, certificate, chain, sslPolicyErrors) => true);

(That's a static member).

To create a plugin, it's easiest to do it from the Index Manager tool's plugin page (it will create a template project for you)
https://keyoti.com/products/search/dotNetWeb/HtmlHelp6/UserGuide/Examples/Plug-in%20(Site%20Map).htm


Jim
-your feedback is helpful to other users, thank you!


notnet
#4 Posted : Monday, February 1, 2016 6:51:36 PM
Rank: Member

Groups: Registered

Joined: 1/29/2016
Posts: 10
Thanks! I was able to get that working for me.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.