cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1942
Views
0
Helpful
3
Replies

how to see the chosen cipher for the SSL connection on ACE?

Maciej Waliszko
Level 1
Level 1

Hi,

I have an ACE module doing a typical SSL offload job. Is there any way to see (any show command on ASA?) which cipher algorithm was chosen by the browser of the end customer?

parameter-map type ssl PORTAL-SSL-PARAMMAP

  cipher RSA_WITH_RC4_128_MD5

  cipher RSA_WITH_RC4_128_SHA

  cipher RSA_WITH_3DES_EDE_CBC_SHA

  cipher RSA_WITH_AES_128_CBC_SHA

  cipher RSA_WITH_AES_256_CBC_SHA

cheers,

m.w

3 Replies 3

cpomeroy
Level 1
Level 1

Show stats crypto server, will show you the number of times a cipher was chosen.

Hi Chris,

Thank you for the answer. Is there any chance to see the chosen cipher for the individual connection? Any show or debug?

"Show conn" doesn show that information.

thx,

Christoper is right.

You can again see more granular command out of the command suggested by Christopher.

#Show stats crypto server cipher

#

Show stats crypto client cipher

and when running continuously these commands several times you can compare the results and can detect which cipher parameter value is increasing to detect which alogorithm is getting a hit out of the available cipher.

Its simple.

#Show stats crypto server cipher

+-----------------------------------------------+
+------- Crypto server cipher statistics -------+
+-----------------------------------------------+
Cipher sslv3_rsa_rc4_128_md5:                     0
Cipher sslv3_rsa_rc4_128_sha:                     0
Cipher sslv3_rsa_des_cbc_sha:                     0
Cipher sslv3_rsa_3des_ede_cbc_sha:                0
Cipher sslv3_rsa_exp_rc4_40_md5:                  0
Cipher sslv3_rsa_exp_des40_cbc_sha:               0
Cipher sslv3_rsa_exp1024_rc4_56_md5:              0
Cipher sslv3_rsa_exp1024_des_cbc_sha:             0
Cipher sslv3_rsa_exp1024_rc4_56_sha:              0
Cipher sslv3_rsa_aes_128_cbc_sha:                 0
Cipher sslv3_rsa_aes_256_cbc_sha:                 0
Cipher tlsv1_rsa_rc4_128_md5:                     0
Cipher tlsv1_rsa_rc4_128_sha:                     0
Cipher tlsv1_rsa_des_cbc_sha:                     0
Cipher tlsv1_rsa_3des_ede_cbc_sha:                0
Cipher tlsv1_rsa_exp_rc4_40_md5:                  0
Cipher tlsv1_rsa_exp_des40_cbc_sha:               0
Cipher tlsv1_rsa_exp1024_rc4_56_md5:              0
Cipher tlsv1_rsa_exp1024_des_cbc_sha:             0
Cipher tlsv1_rsa_exp1024_rc4_56_sha:              0
Cipher tlsv1_rsa_aes_128_cbc_sha:                 0
Cipher tlsv1_rsa_aes_256_cbc_sha:                 0

As of now in the starting it will show all zero so no hit. After your browser accesses webpages cipher will be hit and increase in the count and then you can detect after

Please Display client SSL statistics by entering the the following command and also attached here so that I can also see what is happening in your ace device:

ACE_module5/Admin# show stats crypto client

+----------------------------------------------+

+---- Crypto client termination statistics ----+

+----------------------------------------------+

SSLv3 negotiated protocol:                        0

TLSv1 negotiated protocol:                        0

SSLv3 full handshakes:                            0

SSLv3 resumed handshakes:                         0

SSLv3 rehandshakes:                               0

TLSv1 full handshakes:                            0

TLSv1 resumed handshakes:                         0

TLSv1 rehandshakes:                               0

SSLv3 handshake failures:                         0

SSLv3 failures during data phase:                 0

TLSv1 handshake failures:                         0

TLSv1 failures during data phase:                 0

Handshake Timeouts:                               0

total transactions:                               0

SSLv3 active connections:                         0

SSLv3 connections in handshake phase:             0

SSLv3 conns in renegotiation phase:               0

SSLv3 connections in data phase:                  0

TLSv1 active connections:                         0

TLSv1 connections in handshake phase:             0

TLSv1 conns in renegotiation phase:               0

TLSv1 connections in data phase:                  0

+----------------------------------------------+

+------- Crypto client alert statistics -------+

+----------------------------------------------+

SSL alert CLOSE_NOTIFY rcvd:                      0

SSL alert UNEXPECTED_MSG rcvd:                    0

SSL alert BAD_RECORD_MAC rcvd:                    0

SSL alert DECRYPTION_FAILED rcvd:                 0

SSL alert RECORD_OVERFLOW rcvd:                   0

SSL alert DECOMPRESSION_FAILED rcvd:              0

SSL alert HANDSHAKE_FAILED rcvd:                  0

SSL alert NO_CERTIFICATE rcvd:                    0

SSL alert BAD_CERTIFICATE rcvd:                   0

SSL alert UNSUPPORTED_CERTIFICATE rcvd:           0

SSL alert CERTIFICATE_REVOKED rcvd:               0

SSL alert CERTIFICATE_EXPIRED rcvd:               0

SSL alert CERTIFICATE_UNKNOWN rcvd:               0

SSL alert ILLEGAL_PARAMETER rcvd:                 0

SSL alert UNKNOWN_CA rcvd:                        0

SSL alert ACCESS_DENIED rcvd:                     0

SSL alert DECODE_ERROR rcvd:                      0

SSL alert DECRYPT_ERROR rcvd:                     0

SSL alert EXPORT_RESTRICTION rcvd:                0

SSL alert PROTOCOL_VERSION rcvd:                  0

SSL alert INSUFFICIENT_SECURITY rcvd:             0

SSL alert INTERNAL_ERROR rcvd:                    0

SSL alert USER_CANCELED rcvd:                     0

SSL alert NO_RENEGOTIATION rcvd:                  0

SSL alert CLOSE_NOTIFY sent:                      0

SSL alert UNEXPECTED_MSG sent:                    0

SSL alert BAD_RECORD_MAC sent:                    0

SSL alert DECRYPTION_FAILED sent:                 0

SSL alert RECORD_OVERFLOW sent:                   0

SSL alert DECOMPRESSION_FAILED sent:              0

SSL alert HANDSHAKE_FAILED sent:                  0

SSL alert NO_CERTIFICATE sent:                    0

SSL alert BAD_CERTIFICATE sent:                   0

SSL alert UNSUPPORTED_CERTIFICATE sent:           0

SSL alert CERTIFICATE_REVOKED sent:               0

SSL alert CERTIFICATE_EXPIRED sent:               0

SSL alert CERTIFICATE_UNKNOWN sent:               0

SSL alert ILLEGAL_PARAMETER sent:                 0

SSL alert UNKNOWN_CA sent:                        0

SSL alert ACCESS_DENIED sent:                     0

SSL alert DECODE_ERROR sent:                      0

SSL alert DECRYPT_ERROR sent:                     0

SSL alert EXPORT_RESTRICTION sent:                0

SSL alert PROTOCOL_VERSION sent:                  0

SSL alert INSUFFICIENT_SECURITY sent:             0

SSL alert INTERNAL_ERROR sent:                    0

SSL alert USER_CANCELED sent:                     0

SSL alert NO_RENEGOTIATION sent:                  0

+-----------------------------------------------+

+--- Crypto client authentication statistics ---+

+-----------------------------------------------+

Total SSL client authentications:                 0

Failed SSL client authentications:                0

SSL client authentication cache hits:             0

SSL static CRL lookups:                           0

SSL best effort CRL lookups:                      0

SSL CRL lookup cache hits:                        0

SSL revoked certificates:                         0

Total SSL server authentications:                 0

Failed SSL server authentications:                0

+-----------------------------------------------+

+------- Crypto client cipher statistics -------+

+-----------------------------------------------+

Cipher sslv3_rsa_rc4_128_md5:                     0

Cipher sslv3_rsa_rc4_128_sha:                     0

Cipher sslv3_rsa_des_cbc_sha:                     0

Cipher sslv3_rsa_3des_ede_cbc_sha:                0

Cipher sslv3_rsa_exp_rc4_40_md5:                  0

Cipher sslv3_rsa_exp_des40_cbc_sha:               0

Cipher sslv3_rsa_exp1024_rc4_56_md5:              0

Cipher sslv3_rsa_exp1024_des_cbc_sha:             0

Cipher sslv3_rsa_exp1024_rc4_56_sha:              0

Cipher sslv3_rsa_aes_128_cbc_sha:                 0

Cipher sslv3_rsa_aes_256_cbc_sha:                 0

Cipher tlsv1_rsa_rc4_128_md5:                     0

Cipher tlsv1_rsa_rc4_128_sha:                     0

Cipher tlsv1_rsa_des_cbc_sha:                     0

Cipher tlsv1_rsa_3des_ede_cbc_sha:                0

Cipher tlsv1_rsa_exp_rc4_40_md5:                  0

Cipher tlsv1_rsa_exp_des40_cbc_sha:               0

Cipher tlsv1_rsa_exp1024_rc4_56_md5:              0

Cipher tlsv1_rsa_exp1024_des_cbc_sha:             0

Cipher tlsv1_rsa_exp1024_rc4_56_sha:              0

Cipher tlsv1_rsa_aes_128_cbc_sha:                 0

Cipher tlsv1_rsa_aes_256_cbc_sha:                 0

To  Display SSL server statistics by entering the following command and send the results to us for further suggestions:

ACE_module5/Admin# show stats crypto server

+----------------------------------------------+

+---- Crypto server termination statistics ----+

+----------------------------------------------+

SSLv3 negotiated protocol:                        0

TLSv1 negotiated protocol:                        0

SSLv3 full handshakes:                            0

SSLv3 resumed handshakes:                         0

SSLv3 rehandshakes:                               0

TLSv1 full handshakes:                            0

TLSv1 resumed handshakes:                         0

TLSv1 rehandshakes:                               0

SSLv3 handshake failures:                         0

SSLv3 failures during data phase:                 0

TLSv1 handshake failures:                         0

TLSv1 failures during data phase:                 0

Handshake Timeouts:                               0

total transactions:                               0

SSLv3 active connections:                         0

SSLv3 connections in handshake phase:             0

SSLv3 conns in renegotiation phase:               0

SSLv3 connections in data phase:                  0

TLSv1 active connections:                         0

TLSv1 connections in handshake phase:             0

TLSv1 conns in renegotiation phase:               0

TLSv1 connections in data phase:                  0

+----------------------------------------------+

+------- Crypto server alert statistics -------+

+----------------------------------------------+

SSL alert CLOSE_NOTIFY rcvd:                      0

SSL alert UNEXPECTED_MSG rcvd:                    0

SSL alert BAD_RECORD_MAC rcvd:                    0

SSL alert DECRYPTION_FAILED rcvd:                 0

SSL alert RECORD_OVERFLOW rcvd:                   0

SSL alert DECOMPRESSION_FAILED rcvd:              0

SSL alert HANDSHAKE_FAILED rcvd:                  0

SSL alert NO_CERTIFICATE rcvd:                    0

SSL alert BAD_CERTIFICATE rcvd:                   0

SSL alert UNSUPPORTED_CERTIFICATE rcvd:           0

SSL alert CERTIFICATE_REVOKED rcvd:               0

SSL alert CERTIFICATE_EXPIRED rcvd:               0

SSL alert CERTIFICATE_UNKNOWN rcvd:               0

SSL alert ILLEGAL_PARAMETER rcvd:                 0

SSL alert UNKNOWN_CA rcvd:                        0

SSL alert ACCESS_DENIED rcvd:                     0

SSL alert DECODE_ERROR rcvd:                      0

SSL alert DECRYPT_ERROR rcvd:                     0

SSL alert EXPORT_RESTRICTION rcvd:                0

SSL alert PROTOCOL_VERSION rcvd:                  0

SSL alert INSUFFICIENT_SECURITY rcvd:             0

SSL alert INTERNAL_ERROR rcvd:                    0

SSL alert USER_CANCELED rcvd:                     0

SSL alert NO_RENEGOTIATION rcvd:                  0

SSL alert CLOSE_NOTIFY sent:                      0

SSL alert UNEXPECTED_MSG sent:                    0

SSL alert BAD_RECORD_MAC sent:                    0

SSL alert DECRYPTION_FAILED sent:                 0

SSL alert RECORD_OVERFLOW sent:                   0

SSL alert DECOMPRESSION_FAILED sent:              0

SSL alert HANDSHAKE_FAILED sent:                  0

SSL alert NO_CERTIFICATE sent:                    0

SSL alert BAD_CERTIFICATE sent:                   0

SSL alert UNSUPPORTED_CERTIFICATE sent:           0

SSL alert CERTIFICATE_REVOKED sent:               0

SSL alert CERTIFICATE_EXPIRED sent:               0

SSL alert CERTIFICATE_UNKNOWN sent:               0

SSL alert ILLEGAL_PARAMETER sent:                 0

SSL alert UNKNOWN_CA sent:                        0

SSL alert ACCESS_DENIED sent:                     0

SSL alert DECODE_ERROR sent:                      0

SSL alert DECRYPT_ERROR sent:                     0

SSL alert EXPORT_RESTRICTION sent:                0

SSL alert PROTOCOL_VERSION sent:                  0

SSL alert INSUFFICIENT_SECURITY sent:             0

SSL alert INTERNAL_ERROR sent:                    0

SSL alert USER_CANCELED sent:                     0

SSL alert NO_RENEGOTIATION sent:                  0

+-----------------------------------------------+

+--- Crypto server authentication statistics ---+

+-----------------------------------------------+

Total SSL client authentications:                 0

Failed SSL client authentications:                0

SSL client authentication cache hits:             0

SSL static CRL lookups:                           0

SSL best effort CRL lookups:                      0

SSL CRL lookup cache hits:                        0

SSL revoked certificates:                         0

Total SSL server authentications:                 0

Failed SSL server authentications:                0

+-----------------------------------------------+

+------- Crypto server cipher statistics -------+

+-----------------------------------------------+

Cipher sslv3_rsa_rc4_128_md5:                     0

Cipher sslv3_rsa_rc4_128_sha:                     0

Cipher sslv3_rsa_des_cbc_sha:                     0

Cipher sslv3_rsa_3des_ede_cbc_sha:                0

Cipher sslv3_rsa_exp_rc4_40_md5:                  0

Cipher sslv3_rsa_exp_des40_cbc_sha:               0

Cipher sslv3_rsa_exp1024_rc4_56_md5:              0

Cipher sslv3_rsa_exp1024_des_cbc_sha:             0

Cipher sslv3_rsa_exp1024_rc4_56_sha:              0

Cipher sslv3_rsa_aes_128_cbc_sha:                 0

Cipher sslv3_rsa_aes_256_cbc_sha:                 0

Cipher tlsv1_rsa_rc4_128_md5:                     0

Cipher tlsv1_rsa_rc4_128_sha:                     0

Cipher tlsv1_rsa_des_cbc_sha:                     0

Cipher tlsv1_rsa_3des_ede_cbc_sha:                0

Cipher tlsv1_rsa_exp_rc4_40_md5:                  0

Cipher tlsv1_rsa_exp_des40_cbc_sha:               0

Cipher tlsv1_rsa_exp1024_rc4_56_md5:              0

Cipher tlsv1_rsa_exp1024_des_cbc_sha:             0

Cipher tlsv1_rsa_exp1024_rc4_56_sha:              0

Cipher tlsv1_rsa_aes_128_cbc_sha:                 0

Cipher tlsv1_rsa_aes_256_cbc_sha:                 0

Also you can Display the number of SSL data messages sent and SSL FIN/RST messages sent by entering the following command and send the output from your ACE devices:

ACE_module5/Admin# show stats http

+------------------------------------------+

+-------------- HTTP statistics -----------+

+------------------------------------------+

LB parse result msgs sent : 0          , TCP data msgs sent       : 0

Inspect parse result msgs : 0          , SSL data msgs sent       : 0 <-------

                      sent

TCP fin/rst msgs sent     : 0          , Bounced fin/rst msgs sent: 0

SSL fin/rst msgs sent     : 0          , Unproxy msgs sent        : 0 <-------

Drain msgs sent           : 0          , Particles read           : 0

Reuse msgs sent           : 0          , HTTP requests            : 0

Reproxied requests        : 0          , Headers removed          : 0

Headers inserted          : 0          , HTTP redirects           : 0

HTTP chunks               : 0          , Pipelined requests       : 0

HTTP unproxy conns        : 0          , Pipeline flushes         : 0

Whitespace appends        : 0          , Second pass parsing      : 0

Response entries recycled : 0          , Analysis errors          : 0

Header insert errors      : 0          , Max parselen errors      : 0

Static parse errors       : 0          , Resource errors          : 0

Invalid path errors       : 0          , Bad HTTP version errors  : 0

Headers rewritten         : 0          , Header rewrite errors    : 0

Lastly to  Display session cache statistics for the current context by entering the following command:

switch/Admin# show crypto session

SSL Session Cache Stats for Context

------------------

Number of Client Sessions:                        0

Number of Server Sessions:                       0

----------------------

Can you send the output of the following commands to suggest more on your config

ACE-1/routed# show crypto files

ACE-1/routed# show crypto certificate all

ACE-1/routed# show crypto key all

ACE-1/routed# show crypto session

ACE-1/routed# show crypto hardware

ACE-1/routed# show service-policy detail

-------------------------------------------------------

HTH

Sachin