Re: [OT] Any ideas for time-limiting demo web apps?

2004-05-11 Thread bOOyah
Jesse Alexander (KXT) wrote:
use a certificate. validation of valid-timerange is almost free.
And that's what I decided to do.

I get a cert from a keystore and check its validity.  I catch 
'CertificateExpiredException' and 'CertificateNotYetValidException' and 
output error messages accordingly.


hope this gives some ideas
Yes, it did.  Many thanks Jesse.  It was really easy in the end 
(especially since my requirements were lightweight).

--
bOOyah
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [OT] Any ideas for time-limiting demo web apps?

2004-05-11 Thread shankarr
Hi!
My apologies.
Only now I realised that I had not changed the subject line.
Will do as advised.
Thanks,
*Richie*
Jesse Alexander (KXT) wrote:

Hi,

he did not really implement https into his app...
He just used the date-validation with an immutable key (the cert). For
this he needed just two tiny parts of the "https-stuff": How to fetch a
certificate from a keystore. and How to check for validity of a cert.
Maybe you should open a new thread stating your requirements / needs / 
use-case. Then we can point you to the right ressources.

regards
Alexander
-Original Message-
From: shankarr [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 11. Mai 2004 07:21
To: Struts Users Mailing List
Subject: Re: [OT] Any ideas for time-limiting demo web apps?
Hi!

I want to implement https on my application. It seems that you have done 
just that.
It would be nice if you could state stepwise how you achieved the same. 
Your help is highly appreciated.

Thanks in advance,
*Richie*
\
bOOyah wrote:
 

Jesse Alexander (KXT) wrote:

   

use a certificate. validation of valid-timerange is almost free.
 

And that's what I decided to do.

I get a cert from a keystore and check its validity.  I catch 
'CertificateExpiredException' and 'CertificateNotYetValidException' 
and output error messages accordingly.

   

hope this gives some ideas
 

Yes, it did.  Many thanks Jesse.  It was really easy in the end 
(especially since my requirements were lightweight).

   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




RE: [OT] Any ideas for time-limiting demo web apps?

2004-05-11 Thread Jesse Alexander (KXT)
Hi,

he did not really implement https into his app...
He just used the date-validation with an immutable key (the cert). For
this he needed just two tiny parts of the "https-stuff": How to fetch a
certificate from a keystore. and How to check for validity of a cert.

Maybe you should open a new thread stating your requirements / needs / 
use-case. Then we can point you to the right ressources.

regards
Alexander

-Original Message-
From: shankarr [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 11. Mai 2004 07:21
To: Struts Users Mailing List
Subject: Re: [OT] Any ideas for time-limiting demo web apps?


Hi!

I want to implement https on my application. It seems that you have done 
just that.
It would be nice if you could state stepwise how you achieved the same. 
Your help is highly appreciated.

Thanks in advance,
*Richie*

\
bOOyah wrote:

> Jesse Alexander (KXT) wrote:
>
>> use a certificate. validation of valid-timerange is almost free.
>
> And that's what I decided to do.
>
> I get a cert from a keystore and check its validity.  I catch 
> 'CertificateExpiredException' and 'CertificateNotYetValidException' 
> and output error messages accordingly.
>
>
>> hope this gives some ideas
>
> Yes, it did.  Many thanks Jesse.  It was really easy in the end 
> (especially since my requirements were lightweight).
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Any ideas for time-limiting demo web apps?

2004-05-10 Thread shankarr
Hi!

I want to implement https on my application. It seems that you have done 
just that.
It would be nice if you could state stepwise how you achieved the same. 
Your help is highly appreciated.

Thanks in advance,
*Richie*
\
bOOyah wrote:
Jesse Alexander (KXT) wrote:

use a certificate. validation of valid-timerange is almost free.
And that's what I decided to do.

I get a cert from a keystore and check its validity.  I catch 
'CertificateExpiredException' and 'CertificateNotYetValidException' 
and output error messages accordingly.


hope this gives some ideas
Yes, it did.  Many thanks Jesse.  It was really easy in the end 
(especially since my requirements were lightweight).




RE: [OT] Any ideas for time-limiting demo web apps?

2004-05-10 Thread Jesse Alexander (KXT)
use a certificate. validation of valid-timerange is almost free.

If your demo requires that the computer it runs on must be connected to the
internet, you can use the certificate to connect to your own server. Then the
time-range check is done on YOUR server and you can be sure that no 
clock-tweaking is done.

Otherwise ask yourself: what use is an application that does not represent the
correct time?

If you use a db: Check the timestamps. If you encounter a timestamp that is before
another one already in the db... Then the computers clock has been changed...
Now wait... a few moments in life, this can be regular (summer-time switching, 
adjusting a clock (not all server-clocks are correctly working all the time)), but
still it can be an inidication, that something is going wrong.

If you are really nervous about the clock-tweaking... why not write a special
log-file where you use checksums to check for a correct log and put in the 
timestamp and check it that way for irregularities?

hope this gives some ideas
Alexander

-Original Message-
From: bOOyah [mailto:[EMAIL PROTECTED]
Sent: Montag, 10. Mai 2004 15:27
To: [EMAIL PROTECTED]
Subject: [OT] Any ideas for time-limiting demo web apps?


Very off-topic this one, but I'm wondering if anyone has any good 
techniques for preventing a web app from working beyond a certain time? 
  I'm thinking of the situation where demo or Beta versions of the app 
are distributed in the field and you want limit how long they will 
continue to work.

Obviously I could check the system clock and perform a crude 
calculation.  But how would I trap the system clock being reset back in 
time?

Are there lightweight alternative techniques?

TIA.
-- 
bOOyah


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Any ideas for time-limiting demo web apps?

2004-05-10 Thread bOOyah
Very off-topic this one, but I'm wondering if anyone has any good 
techniques for preventing a web app from working beyond a certain time? 
 I'm thinking of the situation where demo or Beta versions of the app 
are distributed in the field and you want limit how long they will 
continue to work.

Obviously I could check the system clock and perform a crude 
calculation.  But how would I trap the system clock being reset back in 
time?

Are there lightweight alternative techniques?

TIA.
--
bOOyah
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]