This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Hi guys,

I am trying to connect to a public webservice, which requires from its clients to have their own certificate. The whole communication is secure. So I think we could talk about the Client-authenticated TLS handshake.

The certificate is installed on the machine (Local Computer and User). It is verified from a CA. But it seems to me, that the client does not send any client certificate, I have tried it in a browser and programatically:

alt text

asked 03 Dec '13, 07:37

thespycry's gravatar image

thespycry
6113
accept rate: 0%


OK the question is, why isn't the server requesting the certificate ? what reason could it have?

The server does request a certificate, which you can see with a display filter (ssl.handshake.type == 13), in the Info column of the Server Hello (Certificate Request) or with OpenSSL.

C:\tools\openssl\bin>openssl s_client -connect awp.statistik.at:443 -state
Loading 'screen' into random state - done
CONNECTED(0000074C)
SSL_connect:before/connect initialization
SSL_connect:SSLv2/v3 write client hello A
SSL_connect:SSLv3 read server hello A
depth=3 C = ZA, ST = Western Cape, L = Cape Town, O = Thawte Consulting cc, OU
 CA, emailAddress = [email protected]
verify error:num=19:self signed certificate in certificate chain
verify return:0
SSL_connect:SSLv3 read server certificate A
SSL_connect:SSLv3 read server certificate request A
SSL_connect:SSLv3 read server done A

HOWEVER: Your request is sent through a Proxy (CONNECT method used). If that is a 'simple' proxy, than it would be no problem to forward the client cert request to the browser. If you don't see the client cert request in the capture file (ssl.handshake.type == 13), then your proxy is (most certainly) intercepting SSL/TLS connections to scan the content, which is quite common in corporate environments. In that case it is impossible/hard to forward the client cert request to the client. The 'better' proxy products (means more expensive) do offer a workaround for this problem. On those devices you can store a client cert (plus key) and the proxy will answer the client cert request on behalf of the client, with the stored credentials.

Please ask your proxy admin:

  • if SSL interception is turned on (I'm pretty sure, as the server sends a client cert request)
  • if it is possible to let the proxy answer the client cert request on behalf of the client

If your proxy is not able to handle client cert requests, there are two workarounds

  • Configure the proxy to not intercept connections to awp.statistik.at
  • Configure your client to not use the proxy for connections to awp.statistik.at. However, then you need a rule in your firewall, that allows the connection directly.

Regards
Kurt

permanent link

answered 04 Dec '13, 03:44

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 04 Dec '13, 03:47

alright, so if I understand correctly, we see the cert request from server while using the openssl command, because we are on the one side of the ssl 'tunnel'. We do not see it with wireshark, because we are only intercepting a ssl connection. So, YES, the server always sends the client cert request, but it does not come through the proxy so it seems, like the server isn't asking.

(04 Dec '13, 04:20) thespycry
1

we see the cert request from server while using the openssl command,

erm... no. I can see the client cert request, because I am accessing the target server via the internet, without proxy.

We do not see it with wireshark, because we are only intercepting a ssl connection.

Yes. And, if you would have used openssl in your environment, you would not see it due to the assumed proxy behavior.

So, YES, the server always sends the client cert request,

I don't know if it always sends the request, but it did in my tests.

but it does not come through the proxy so it seems, like the server isn't asking.

Yes.

If you check the certificate of the server in the browser. What do you see as issuer (Certificate Authority)? If you see something related to your corporate proxy, then you know the SSL traffic was intercepted. I'm pretty sure it is, as the Server Hello in your screenshot looks totally different than in my tests.

(04 Dec '13, 05:30) Kurt Knochner ♦

Yes, you are right, in the Server Hello Message, there are 2 Certificates: one is asp.statistik.at and the other one is our organisation name. The issuer of the statistik.at is our organization. ! Man you are so much helpful.. Thank you really much !! :)

(04 Dec '13, 05:42) thespycry

The issuer of the statistik.at is our organization. !

there you have it! ;-)

Man you are so much helpful.. Thank you really much !!

you're welcome.

Hint: If a supplied answer resolves your question can you please "accept" it by clicking the checkmark icon next to it. This highlights good answers for the benefit of subsequent users with the same or similar questions. For extra points you can up vote the answer (thumb up).

(04 Dec '13, 05:53) Kurt Knochner ♦

I don't see a "Certificate Request" sent by the server therfore the client doesn't send its certificate.

permanent link

answered 03 Dec '13, 08:33

mrEEde's gravatar image

mrEEde
3.9k152270
accept rate: 20%

OK the question is, why isn't the server requesting the certificate ? what reason could it have?

(04 Dec '13, 00:05) thespycry
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×44
×23
×10

question asked: 03 Dec '13, 07:37

question was seen: 33,551 times

last updated: 04 Dec '13, 05:55

p​o​w​e​r​e​d by O​S​Q​A