This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Client-cert authentication: how to prevent the client copy the cert to other pc

 
Yi Meng
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I intend to distribute my rich client application with a client cert so that they can subsequently connect to the server using client-cert authentication and then authorization...

The app is supposed/licensed to run from only one computer, but i also don't want to have an installation key kinda stuff. So I would like to ensure this by only allowing connection from one computer per cert.

Naturally, or ideally, the best would be that i store the client's MAC address when it makes first connection to the server and subsequently deny access from any other MAC addresses for this cert. But i suppose i have no way to get the client's MAC.

So, anyone got a suggestion? thanks
 
Yi Meng
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, let me phrase it in another way, my questions are:

1. how to store the client cert securely on client's pc?

2. how to detect if the client cert has been copied to another pc?
 
greg stark
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> ... But i suppose i have no way to get the client's MAC.

http://java.sun.com/javase/6/docs/api/java/net/NetworkInterface.html#getHardwareAddress()
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic