• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

SSL connection - howto disable sending client certificate?

 
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

My java client connects to SSL Server. X500 factory accepts all server certificates. There is no keystore - I do not need it.

Now my problem: SSL connection works fine, but my SSL Cleint keeps sending client certificate - I need to disable this.

Can I configure Java in a way, that client certificate is not being send?

This is quiet normal, that clients does not send SSL certificates when connect to the server.....

Thanks,
Maciej
[ June 04, 2008: Message edited by: Maciej Miklas ]
 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The client will only send it's certificate if the server has requested it. This is something you need to configure in your server, not Java.
 
Maciej Miklas
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The request goes trough firewall. The firewall asks always for the certificate. If there is no certificate request goes trough. If there is certificate it will be validated.

I need to configure my java cleint that it does not send the certificate - just to say "there is no certificate"

Such configuration is possible for browser.
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So the firewall is requesting a certificate but is happy to continue if the client doesn't have one, but in your original post you say that the client does have a certificate.
Your server must be requesting a certificate (otherwise the client wouldn't send it), so I don't see what the problem is. You either need to configure your server not to request a certificate or configure it to be happy if no certificate is available (if that is possible).
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think this post fits better in the Sockets and Internet Protocols forum instead of the General Computing forum, so I'll move this post over there.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic