Re: newbie: set cert time validity

2007-07-16 Thread imin macho
erm... but there's still one problem. where in IssueCertificate should I add the line X509_gmtime_roundup(X509_get_notAfter(x)); ? because currently the line is only added in renewCertificate... as I can't see where in IssueCertificate can I add those lines.. thanks again On 7/16/07, David Schwar

Re: newbie: set cert time validity

2007-07-16 Thread imin macho
hold on! thanks a lot I managed to get it to 23:59:59. all i had to do was change the value strcpy(buf+6, "235959Z"); to strcpy(buf+6, "155959Z"); thanks again, David Schwartz! You're a great help!! On 7/16/07, David Schwartz <[EMAIL PROTECTED]> wrote: I added the X509_gmtime_roundup(X509_

Re: newbie: set cert time validity

2007-07-16 Thread imin macho
I see... does this mean I can't make it to expire at 23:59:59 for the particular day? This is the UTC/GMT time for which area...? hmm.. actly i'm still confused... anyway it's ok then if I can't make it that way. Is there any way I can convince my boss that (besides sending him a copy of this ema

Re: newbie: set cert time validity

2007-07-16 Thread imin macho
Thanks a lot for your help, David Schwartz! I haven't got it correctly yet, but with your help I could see I'm moving somewhere here. I added the X509_gmtime_roundup(X509_get_notAfter(x)); at my renewCertificate function. When I renewed the cert valid to for example, to 31/7/2007, the cert valid

Re: newbie: set cert time validity

2007-07-15 Thread imin macho
Thanks a lot for trying to help me. here's the snippet of the code: the function that calls IssueCertificate has this line in them: cinfo.begin_validity = day_start; cinfo.validity = day_end; both day_start and day_end are int variables. then they are passed to the IssueCertificate function as

Re: newbie: set cert time validity

2007-07-13 Thread imin macho
thanks a lot for answering my question.. but is this the only way? it seems a bit overwhelming for me.. isn't there any other way? like any function we can call? thanks On 7/13/07, Jim Fox <[EMAIL PROTECTED]> wrote: On Jul 12, 2007, at 9:29 PM, imin macho wrote: > hi... >

newbie: set cert time validity

2007-07-12 Thread imin macho
hi... i'm a noob in openssl.. my employee asked me to edit our c++ cert issuer engine developed using openssl. currently the cert generated will be valid based on the time we generate it. for example, if i generate a cert at 13 july 2007 1:30pm and set its validity for 5 days, the cert will be va

unable to encrypt file written using ifstream/fstream/ofstream.....

2007-04-15 Thread imin macho
hi here's my problem.. really hope anyone can help me figure this out. I'm using tripledes encryption: -i can encrypt or decrypt a text file i written using notepad hundreds of times without problem. -but when i use my application to write on a text file using either ofstream/ifstream/fstream, i

Re: Cannot convert 'des_ks_struct ( *)[16]' to 'des_ks_struct *' ??

2007-03-27 Thread imin macho
Hi Marek Marcola, thanks for helping. i tried compiling the source code u gave me but it returns the same error, which is: [C++ Error] testDes.cpp(23): E2034 Cannot convert 'des_ks_struct ( *)[16]' to 'des_ks_struct *' [C++ Error] testDes.cpp(23): E2342 Type mismatch in parameter 'schedule' (want

Cannot convert 'des_ks_struct ( *)[16]' to 'des_ks_struct *' ??

2007-03-27 Thread imin macho
hi, i'm trying to develop a simple application which will encrypt text file using triple des. actually i got the code from my friend, and he's using openssl 0.9.8a while i'm using 0.9.9b. i faced a problem when compiling the source code using borland... i'll always get the error msg "[C++ Error]

Re: sample code to encrypt file using tripleDes/aes/blowfish

2007-03-27 Thread imin macho
ds.. thanks again On 3/27/07, Bill Colvin <[EMAIL PROTECTED]> wrote: Why not look in the test directory of the OpenSSL source? There are lots of examples there. Bill -- *From:* [EMAIL PROTECTED] [mailto:owner- [EMAIL PROTECTED] *On Behalf Of *imin macho

sample code to encrypt file using tripleDes/aes/blowfish

2007-03-26 Thread imin macho
hi i know this may sound too much, but i'm not really good in using openssl (really new to this), and i've been asked to do simple text file encryption/decryption using openssl library. anyone can direct to me a sample source code, using either tripleDes or Aes or blowfish to encrypt and decrypt

Re: get CA name from user certificate

2006-11-29 Thread imin macho
= NULL; AnsiString issuerTemp(reinterpret_cast(result)); ShowMessage(issuerTemp); I tried displaying the issuer using the ShowMessage, but i returned an empty message box. what did i do wrong? thanks a lot On 11/29/06, Kaushalye Kapuruge <[EMAIL PROTECTED]> wrote: imin macho wrote: > hi

get CA name from user certificate

2006-11-28 Thread imin macho
hi i'm really new to this openSSL thingy. is there any function we can use to read/extract CA's name from client certificate? thank you.