Re: How to protect the application not to be run on other server ?



On Wed, 12 Dec 2007 23:13:46 -0800 (PST), krislioe@xxxxxxxxx wrote,
quoted or indirectly quoted someone who said :

I need a mechanism to protect our application (web based using JSF) to
make sure that it cannot be run outside our company.

the usual way to do that is to require login to use the app. The
servlet womb e.g. Tomcat manages the user ids and passwords.

If you have a list of legal IPs or ranges, your app can check for
itself, bypassing the login requirement.

You can create certificates for your clients. The public key of that
cert is stored in the file on the server. The Login process does a
challenge, asking the client to encrypt something with its private
key, which it sends back. The advantage of this approach is the user
does not need to remember the id or password.

I used such a system in Linux back in the 90s, for remote text-based
login. I would expect something similar should be supported in many
wombs without you having to write any code. If not, you can use the
methods that form the Transporter, a light-weight public key
encryption package that does not need the JCE. To create your
certificates, to encode and decode. See
http://mindprod.com/products1.html#TRANSPORTER

--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.



Relevant Pages

  • Re: SSH Blocking
    ... >> disable root login to ssh and disable password based logins. ... I need to get the public key up ... You generate one public and private key pair. ...
    (Debian-User)
  • Re: Stopping Brute Force SSH Attacks
    ... I only use public key authentication. ... where I try to login before adding my key to ssh-agent, ... other dumb mistake, and am prompted for a passwd. ...
    (comp.security.ssh)
  • Re: SSH login for normal users using authorized keys
    ... But you have to login at least ... >>I was able to create successful login for the root account from a remote ... >>I tried to do it for a normal account it still asks for the password. ... Generated the public key in the client machine. ...
    (RedHat)
  • Re: how to re-use existing session?
    ... > Using public key authentication in conjunction with the ssh-agent should ... I don't want to login at all. ...
    (comp.security.ssh)
  • Re: remote shutdown windows from linux
    ... not able to login using the public key. ... I was just wondering if you were able to do it using public key. ... After giving password it logs me in. ...
    (microsoft.public.windowsxp.general)