No. I have a file certificate. It is on disk. I want to determine the validity period of it. In order to do so, I first need to load the certificate FROM file INTO a X509 structure (defined in X509.h of the OpenSSL source code).
-Radboud -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jose Correia (J) Sent: Wednesday, October 02, 2002 1:59 PM To: [EMAIL PROTECTED] Subject: RE: Validity period of certificates You mean how to create a certificate using openssl? -----Original Message----- From: Radboud Platvoet [mailto:[EMAIL PROTECTED]] Sent: 02 October 2002 13:52 To: [EMAIL PROTECTED] Subject: RE: Validity period of certificates In order for me to use these macros, I first need to load an X509 structure with my certificate (located in a .pem file). Does anybody know how to do this? Thanks, Radboud -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Vijo Cherian Sent: Friday, September 27, 2002 10:27 PM To: [EMAIL PROTECTED] Subject: Re: Validity period of certificates X509_get_notBefore() X509_get_notAfter() are your friends. make sure you dont use that key/cert in any production systems. vijo. On Fri, Sep 27, 2002 at 03:39:07PM +0200, Radboud Platvoet wrote: > Thanks guys, > > That works great. However, I would really like to do it with a call from my > C code and not in the shell. > > -Radboud > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Michiels Olivier > Sent: Friday, September 27, 2002 3:04 PM > To: [EMAIL PROTECTED] > Subject: Re: Validity period of certificates > > > Hi, > take the BEGIN CERTIFICATE to the END CERTIFICATE part, put it in a file, > then do : openssl x509 -in yourfile -text. > You will see the start and the end date at the beginning of the response. > > Hope this help, > > Michiels Olivier > > Radboud Platvoet wrote: > > >Hi everyone, > > > >I would like to know if there is a way to find out for what period a > >certificate is valid (ie: the start and end date). > > > >This is the certificate from which I like to determine the validity period: > > > >-----BEGIN RSA PRIVATE KEY----- > >MIICXQIBAAKBgQDHbmDreHdsfXmdgiveojbx2hVrJPvzxzQ0Ug6g0KxOYUVSSLbs > >xBCW5PGQEn6a++AI6SMt13MTidpUJZmiPiOB2/D7Lg1YMJ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QIEwxadWlkIEhvbGxhbmQxEjAQ > >BgNVBAcTCVJvdHRlcmRhbTETMBEGA1UEChMKRGlnaXZveCBCVjEhMB8GA1UECxMY > >UmVzZWFyY2ggYW5kIERldmVsb3BtZW50MREwDwYDVQQDEwhTMlNlcnZlcjCBnzAN > >BgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAx25g63h3bH15nYIr3qI28doVayT788c0 > >NFIOoNCsTmFFUki27MQQluTxkBJ+mvvgCOkjLddzE4naVCWZoj4jgdvw+y4NWDCT > >UICfFX6c1hEr4LUAlerccFVs9IBkp5ifBJC4WmNLeez4axKjNkaWSoIgZdPG7nlw > >ms25YVqcrzkCAwEAAaMVMBMwEQYJYIZIAYb4QgEBBAQDAgZAMA0GCSqGSIb3DQEB > >BAUAA4GBAA4al9nd/lph0P+RKoOfDPZXLFf1kfU7dHJIrXR5F9HvhVuVNyFLNyTO > >JXq8M/mcPM9eGNEfOwdGjHZCM91pduauvTZ6rqUOHIDV5oQdqVsCEMdZa5t2aTS+ > >g+ffMr6+aAm+ax3eU3/5tk1T2RkVOsIFEYCymiaMcXsVCFUvi/Pn > >-----END CERTIFICATE----- > > > >Any help is greatly appreciated! > > > >Thanks, > >Radboud > > > >_____________________________________________________________________ _ > >OpenSSL Project http://www.openssl.org > >User Support Mailing List [EMAIL PROTECTED] > >Automated List Manager [EMAIL PROTECTED] > > > > > > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List [EMAIL PROTECTED] > Automated List Manager [EMAIL PROTECTED] > > ______________________________________________________________________ > OpenSSL Project http://www.openssl.org > User Support Mailing List [EMAIL PROTECTED] > Automated List Manager [EMAIL PROTECTED] -- vijo ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]