curl-library
Re: CURL time setting ssl error
Date: Tue, 23 Feb 2016 16:08:34 +0530
Hi Daniel,
unfortunately when I change time in the system, it affects other threads.
So that's Y I was curious to know whether was a function to do that.
So is there way around where I can provide time, or only the system time is
the way for curl.
Thanks
Thiru balaji.S
On Tue, Feb 23, 2016 at 3:02 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:
> On Tue, 23 Feb 2016, Thiru balaji wrote:
>
> I receive a ssl error stating "certificate not yet valid".
>> I expected this, as the time utltilies in my system is not correct.
>>
>> So my question, is there a way such as callback where I can provide time
>> to curl.
>>
>
> No there isn't. And also, even if we would provide such a function it
> wouldn't help in lots of cases. Most[*] TLS libraries libcurl can be built
> to use have their own certificate verification functions and they tend to
> also do the validation of the cert's dates. I'm not aware of the TLS
> libraries offering that functionality.
>
> Can I override this with a different option, is it available. Let me know.
>>
>
> It'll be WAY easier if you "ovcerrided" your time problem by setting a
> roughly accurate system time...
>
> [*] = OpenSSL is the golden exception here, for which libcurl actually do
> the time checks itself but I would rather avoid adding more OpenSSL
> specific code.
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: https://cool.haxx.se/list/listinfo/curl-library
> Etiquette: https://curl.haxx.se/mail/etiquette.html
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-02-23