On Wed, Mar 21, 2007, Dinh, Thao V CIV NSWCDD, K72 wrote:

> Hi 
> I have to interface with a client running
> TLS_RSA_WITH_3DES_EDE_CBC_SHA1. My Questions are:
> 
> 1) Which part  in my Server's program dictate using this
> TLS_RSA_WITH_3DES_EDE_CBC_SHA1, 
>    beside calling TLSv1_method ?? It seem to me the certificate will
> dictate what Asymmetric/symmetric/hash
>    ... will be used. Is it correctly ???
> 

The certificate only decides the asymmetric algorithm to use. If an RSA
certificate is present then that ciphersuite is usable.

> 2) For Ephemeral keying, because DH is not involved at all, so that the
> ephemeral Diffie-Hellman is not an option. It forces me to add in server
> initialization routine something like :
>  
>        SSL_CTX_set_options(ctx,
> SSL_OP_ALL|SSL_OP_NO_SSLv2|SSL_OP_EPHEMERAL_RSA)
> 
>        RSA *rsa;
>        rsa=RSA_generate_key(2048,RSA_F4,NULL,NULL);
>        if (!SSL_CTX_set_tmp_rsa(SSL_context,rsa)){
>                ExitPostmaster(1);
>        }
>        RSA_free(rsa);
> 
>  IS THAT ALL in Server side ???
> 
> 3) What happen if my client had RSA with less that 2048 bit ?? For me,
> it does not matter ( e.g. not break any connection) because in RSA case,
> the client will use Server Ephemeral key to encrypt the Pre-Master key.
> Is it correctly ???
> 

Temporary RSA keys are only used in some export ciphersuites which are now
obsolete. The use of ephemeral RSA keys actually violates the standards in
that particular ciphersuite.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to