Martin,
You seriously question the security of timestamps
with sha1-based signatures.
Formats have been described on how to address this
issue in general, i.e. when the hash function becomes weak.
Such formats exist in the context of Advanced Electronic
Signatures with the AdES-A format as defined
by ETSI for CAdES and XAdES.
Late 2009, ETSI has defined new ways to sign PDF documents
which can contain several time-stamps.
See ETSI TS 102 778-4. In this document, it is explained
that TSTs can be used in two cases:
when the document is signed and when the document
is unsigned.
Note: In order to capture the content of this document, it may be useful
to read parts 1 to 3 as well.
While formats exist, in many cases the way to use
these formats is not crystal clear.
Basically, the problem to "renew a time-stamp"
does not happen first because the hash function
becomes weak, but because the validity period of the TSU certificate is
over.
A new TST must then be used to protect the previous
one.
It must then be demonstrated that, at the time the
new TST was applied, the certificate of the previous
time-stamp was not revoked with the revocation reason "key compromise".
So the certification path and the revocation information
MUST be captured and a new TST
(with a stronger hash function) must be applied.
Do you think it might be useful to draft an Informational
RFC to explain such things ?
Denis
De :
Martin Rex <mrex <at> sap.com>
A :
peter.sylvester <at> edelweb.fr
(Peter Sylvester)
Cc :
pkix <at> ietf.org
Date :
30/06/2011 19:46
Objet :
[pkix] rfc3161
TimeStamps and sha1-based sigs/imprints in pkcs7/cms
Envoyé par :
pkix-bounces <at> ietf.org
Peter Sylvester wrote:
>
> We are sorry for them. This URL has been deprecated
> since years, a good one can be found reading
>
>
http://timestamping.edelweb.fr
>
> Thanks for your attention and sorry for the inconvenience
> of this message for those who are not interested in timestamping
Speaking of rfc3161 timestamping, most public services seem to
be limited to sha1WithRsaEncryption { 1, 2, 840, 113549, 1, 1, 5 }
which looks like an anachronism and a security problem to me.
Are the proposals or is there a standard how to migrate to
a more resonable signature algorithm such as
sha256WithRsaEncryption { 1, 2, 840, 113549, 1, 1, 11 }
e.g. when the MessageImprint uses SHA256?
While requesting this feature explicitly through a specific
TSA policy OID would theoretically be possible, this very
same approach would be quite non-portable.
The original plan was to _have_completed_ phasing out the use of SHA-1
for digital signatures by the end of 2010, but that target seems to
have been missed entirely. There is a significant availability of
RSA 2048-bit certificates, but the use of sha256WithRsaEncryption
is still at homeopathic levels.
The purpose of rfc3161 timestamps is to prove that something existed
before or at a certain time, and the two most common uses I can
think of are:
- determine whether a digital signature was created within
the validity period of the signer certificate
- determine whether a digital signature was created before
the point in time when the signer certificate was
revoked
Both these cases, a purposes looking into the future, sometimes
far into the future (think e.g. about signed×tamped code),
and I seriously question the security of timestamps with
sha1-based signatures (or sha1-based message imprints or the
original, often indirect signatures on the underlying pkcs7/CMS)
for purposes with a useful lifetime of many years into the future.
-Martin
_______________________________________________
pkix mailing list
pkix <at> ietf.org
https://www.ietf.org/mailman/listinfo/pkix