• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SSL between two Webserver triggered by a client

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everybody,
I have a problem by configuring my web-server to accept a SSL certification.
The small example I want to program is a Internet Explorer-client connects to a Webserver(1). This Webserver(1) executes a function, triggered by the client on a second Webserver(2). Both Webserver are using Tomcat 3.3.2 for Windows. The result will then be displayed in the IE-client. Without using encryption this example works and the function "sayHello(name)" returns the correct String.
The example also works if I connect to the Webserver(1)with an HTTPS socket. I can read my self generated certification after I accepted it as a trusted one for this session.
I'm running in Problems if my Webserver(1) should connect to Webserver(2) and also use a SSL connection (HTTPS). By doing this I have no possibility to accept this certificate and so I get the error "sun.security.validator.ValidatorException: No trusted certificate found".
Though my whole examples are only for testing I don't want to register VeriSign or any other organisation. Is there a possibility how I can let my server now, that he can trust this certification?
I would be glad if anyone could help me. Thanks in advance,
best regards
Joe
 
Joe Schaffer
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everybody,
I solved the problem. I had one problem by exporting and importing my certificate. It works if the name of the computer (not localhost) is entered in the CN-field of the keytool generation. After that the file has to be exportet to a .cer file. This can now be importet to the cacerts file of the java virtual machine (.../jre/lib/security). Now all information of the certificate are valid. Additionally I used the IE to accept my certificate as a trusted one. This can be done if the certificate pops up where you should accept it. Just go on Details - import.
My second problem was, I am not allowed to call the second webserver with "https://localhost:..." I have to use "https://<computername>:...."
Best regards
Joe
 
When evil is afoot and you don't have any arms you gotta be hip and do the legwork, but always kick some ... tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic