]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
*** empty log message ***
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 19 Dec 2003 11:52:47 +0000 (11:52 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 19 Dec 2003 11:52:47 +0000 (11:52 +0000)
doc/tex/cert_auth.tex
doc/tex/ciphersuites.tex
src/serv.c

index cef7fc75368014996243d2b336026d929309d8b8..8e71417c7fcd4b04556be33ed7da47f08f6c4786 100644 (file)
@@ -60,12 +60,17 @@ the raw certificate of the peer and verify it using the functions discussed in
 section \ref{x509:trust} on page \pageref{x509:trust}. 
 
 \par
-In a handshake, the negotiated key exchange method depends on the 
+In a handshake, the negotiated cipher suite depends on the 
 certificate's parameters, so not all key exchange methods will be available
-with some certificates. That is a certificate with DSA parameters will not
-be able to use the RSA key exchange method.
+with some certificates. \gnutls{} will disable ciphersuites that are not compatible with the key, or
+the enabled authentication methods. For example keys marked as sign-only, will not be able to
+access the plain RSA ciphersuites, but only the DHE\_RSA ones. It is
+recommended not to use RSA keys for both signing and encryption. If possible
+use the same key for the DHE\_RSA and RSA\_EXPORT ciphersuites, which use signing,
+and a different key for the plain RSA ciphersuites, which uses encryption.
 All the key exchange methods shown in \hyperref{figure}{figure }{}{fig:cert} are
 available in certificate authentication. 
+
 Note that the DHE key exchange methods require Diffie Hellman parameters
 to be generated and associated with a credentials structure. The RSA-EXPORT
 method requires 512 bit RSA parameters, which should also be generated
@@ -77,6 +82,7 @@ and associated with the credentials structure. See the functions:
 \item \printfunc{gnutls_certificate_set_rsa_export_params}{gnutls\_certificate\_set\_rsa\_export\_params}
 \end{itemize}
 
+
 \begin{figure}[hbtp]
 \index{Key exchange algorithms}
 \begin{tabular}{|l|p{9cm}|}
index 72fe2f8a119ab8d435d041332ea0a21a81e8c1c9..87c3a9913545c333e748bd772376470492817d99 100644 (file)
@@ -23,12 +23,5 @@ and set priorities on the individual ciphers. It may imply that all combinations
 are allowed, but this is not true. For several reasons, not discussed here, some combinations 
 were not defined in the \tls{} protocol. The supported ciphersuites are shown
 in appendix \ref{ap:ciphersuites} on page \pageref{ap:ciphersuites}.
-\gnutls{} will disable ciphersuites that are not compatible with the key, or
-the enabled authentication methods.
-For example keys marked as sign-only, will not be able to
-access the plain RSA ciphersuites, but only the DHE\_RSA ones. It is
-recommended not to use RSA keys for both signing and encryption. If possible
-use the same key for the DHE\_RSA and RSA\_EXPORT ciphersuites, which use signing,
-and a different key for the plain RSA ciphersuites, which uses encryption.
 
 \addvspace{1.5cm}
index 2fc08fbded95063c9c63bb5648df47171fb3b8f4..bd43904a7442a4aadfbe4b014ee5e2cd672f9800 100644 (file)
@@ -666,7 +666,7 @@ int main(int argc, char **argv)
 
    if (generate != 0 || read_dh_params != NULL) {
       gnutls_certificate_set_dh_params(cert_cred, dh_params);
-      gnutls_certificate_set_rsa_params(cert_cred, rsa_params);
+      gnutls_certificate_set_rsa_export_params(cert_cred, rsa_params);
    }
 
    /* this is a password file (created with the included srpcrypt utility)