"Server access denied" SSL enabled

Hi,

I have written a crawler(in java) to crawl all databases and all documents within them. I am able to login sucessfully, but when i say dbDirectory.getFirstDatabase(), it gives a “Server access denied”.

Setup: There are a couple of servers in diff domains and cross-certification exists between. The option “Allow HTTP clients to browse databases” is set to Yes.

When i login through web, i first get a pop up asking me if i trust server A. If i say yes, then i can sucessfully login and browse all databases.

Now how do i say that i trust this server in my crawler which is plain java? What do i need to do for this?

Thanks a lot in advance.

Regards,

Priya