[xmlsec] Verify signature after certificate expired
Moultrie, Ferrell (ISSAtlanta)
FMoultrie at iss.net
Wed Oct 9 08:33:12 PDT 2002
Very important question here -- I want to make sure I understand your
reply. In general, it is not permitted to *sign* data after the signing
certificate has expired but it is allowed to *verify* data after
expiration. An example:
I sign my code today allowing the user to verify that it is uncorrupted
when he installs/runs it. My certificate expires in three months. If you
don't honor the signature any more at that point, then his code stops
working -- a very bad thing.
I sign an e-mail to you today. Three months later my cert expires. Six
months later you try to read my e-mail and you're told the signature is
invalid. A bad thing.
As these two examples illustrate, it is *not* standard practice to
invalidate signatures because the signer's cert has expired. The only
date restrictions should be:
1) Signers cert *must* be valid as of the date the data was signed;
2) Root cert(s) *must* be valid as of the date they signed the
subsidiary cert (in fact, I believe proper practice is that CA's
shouldn't sign certs that extend beyond their own validity date).
The key concept is that user signing's *don't*, *shouldn't*, *mustn't*
expire just because the user's cert has expired. At that point, he can't
sign anything else until he renews his cert but everything he signed
still remains valid forever because it was valid when he signed it and
it hasn't changed.
Is there a problem here or did I just misunderstand something?
From: Aleksey Sanin [mailto:aleksey at aleksey.com]
Sent: Wednesday, October 09, 2002 11:05 AM
To: Roman Bouchner
Cc: xmlsec at aleksey.com
Subject: Re: [xmlsec] Verify signature after certificate expired
From the general security point of view the data are *not valid* if the
cert is expired.
If you really want to do this then you should take a look at the OpenSSL
verification function and remove date check. However, this is
Roman Bouchner wrote:
>I would like to verify signed data however signer's certificate has
>already expired. I want only verify data integrity.
>If I use function xmlSecDSigValidate, it returns negative value, so I
>cannot determine if data was changed or not.
>If I change local date it does work, however it is not right way I
>How I can solve this problems?
>xmlsec mailing list
>xmlsec at aleksey.com
xmlsec mailing list
xmlsec at aleksey.com
More information about the xmlsec