Re: SSL, Apache 2 and RSA key sizes



Peter Fairbrother wrote:
Mike Amling wrote:

Peter Fairbrother wrote:
Jason wrote:

Peter Fairbrother wrote:
Sometimes servers use RSA key-exchange keys only once and then discard
them,
signing each new RSA key-exchange key with their RSA signature key, but not
often. They will typically reuse the same RSA key-exchange key a lot,
sometimes even using the same RSA key for both key-exchange and signature
functions (bad).
Why is it bad to use the same RSA key for both encryption and signing?
2) If the same key is used for encryption and signing it is possible for an
attacker to get you to decrypt a message by getting you to sign something -
signing X is exactly the same as decrypting X - and vice versa, he can get
you to sign something by getting you to decrypt it.
Note that this is not a threat if you use proper padding schemes.

Even OEAP might not protect against the second attack scenario. You aren't
signing there, just decrypting - you would not add padding in order to
decrypt. If it's already padded ...

OAEP "decryption" calls for returning "FAILED" and nothing else if the result of C**d mod N is not correctly OAEP padded.


And suppose a client does not use proper padding. Do you refuse a connection
and the business involved just because of that? No, SSL/TLS reverts to the
latest version compatible with both server and client's versions, which may
be a quite early version. A version rollback attack is quite possible, and
in fact the TLS v1 rollback attack detection mechanism doesn't (and can't)
work if the client is malicious and crafty.

Don't get me started on what's wrong with SSL.


I am not terribly familiar with SSL/TLS in all it's various embodiments -
but I don't remember proper padding, eg OAEP, being specified anywhere as a
SHALL/must, especially in the early SSL versions. Not saying it isn't, but I
don't remember it. Iirc there was something about PKCS#1 padding in SSL v2,
but that isn't hugely relevant - it may complicate some attacks, but not
beyond use.

Yes, not to mention SSL's smiling support of 40- and 56-bit encryption. "Use SSL" may be good advice to a newbie, but many sci.crypt posters, including you, know too much not to see its flaws.
I'm in favor of SSL server keys being used for SSL and nothing else.


Also, it may easily be a business requirement to have backups of all
encryption keys, to prevent loss of access to encrypted files.

Unlikely in ssl transactions, and there would be no cause to store the raw
link data.

If the protected material includes credit card details it may even be a
business requirement _not_ to have it available in future. There may also be
some legal privacy reasons for not having the data available, especially in
the EU.

Ergo, since signing keys are more useful if they're long term, another reason to separate the encryption keys and the signing keys.


And how many US companies eg delete emails after 3 months for
anti-disclosure reasons? They would want that deletion to be secure.

But a business should not have copies of its employees signing keys, to make
sure each employee can be held responsible for everything he signs.

I don't see the relevance?

It's another reason to keep encryption and signing keys separate.

--Mike Amling
.



Relevant Pages

  • Re: SSL, Apache 2 and RSA key sizes
    ... They will typically reuse the same RSA key-exchange key a lot, ... Why is it bad to use the same RSA key for both encryption and signing? ... you to sign something by getting you to decrypt it. ... Note that this is not a threat if you use proper padding schemes. ...
    (sci.crypt)
  • Re: SSL, Apache 2 and RSA key sizes
    ... They will typically reuse the same RSA key-exchange key a lot, ... Why is it bad to use the same RSA key for both encryption and signing? ... Suppose your secret encryption key is exposed or demanded by eg a Court ... expensive and not-very-reliable procedures for revoking a signature key. ...
    (sci.crypt)
  • Re: SSL, Apache 2 and RSA key sizes
    ... signing each new RSA key-exchange key with their RSA signature key, ... They will typically reuse the same RSA key-exchange key a lot, ... Why is it bad to use the same RSA key for both encryption and signing? ... you to sign something by getting you to decrypt it. ...
    (sci.crypt)
  • Re: SSL, Apache 2 and RSA key sizes
    ... signing each new RSA key-exchange key with their RSA signature key, ... They will typically reuse the same RSA key-exchange key a lot, ...
    (sci.crypt)
  • RE: Signing before Encryption and Signing after Encryption
    ... I don't understand how a signature can work with a shared key. ... Signing before Encryption and Signing after Encryption ... University program offers unparalleled Infosec management education and the ...
    (Security-Basics)