I'm having a frustrating time trying to get apt to connect to a
(local) server using SSL client certificate authentication.
My apt config file looks like this:
(the server uses a certificate from a self-signed CA, hence the CaInfo)
The sources.list line is:
deb https://localhost:8443/deb test foo bar
Yet when I try an `aptitude update`, the server complains that no
client certificate was supplied ("SSL3_GET_CLIENT_CERTIFICATE
not return a certificate"). Thence, with the debug option turned on,
* gnutls_handshake() failed: Error in the push function.
I've checked using Wireshark and, indeed, the client doesn't supply
any certificate during the SSL handshake ("Handshake protocol:
Certificate | Certificates length: 0").
I can run:
$ curl --insecure --cert "certs/client.crt" --key "certs/client.key"
$ gnutls-cli -V --insecure -p 8443 --x509certfile certs/client.crt
--x509keyfile certs/client.key 127.0.0.1
and in both cases the same client certificate gets sent, and accepted
by the server.
I've been working mostly with Ubuntu 10.04 (apt 0.7.25.3ubuntu9.5),
but the behaviour is the same using the latest apt in testing (as of
I guess I must be doing something wrong/unusual, but I've run out of
ideas for things to try.
The only thing I can think of, given that both curl and gnutls-cli
work, is that some parameter is passed/defaulted by the https
transport which checks something my certs don't pass, so it silently
ignores them. But I looked through https.cc, and couldn't see anything
obvious (not that I know C very well), and silently ignoring a cert
seems too wonky to be likely.
Does anyone have any ideas?
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org
Archive: BANLkTiksS_rSmN7DGbJkA6uZZerVpCgTqQ@mail.gmail.com ">http://lists.debian.org/BANLkTiksS_rSmN7DGbJkA6uZZerVpCgTqQ@mail.gmail.com