[Help-gnutls] Re: some crashes on using DSA keys
Miroslav Kratochvil
exa.exa at gmail.com
Mon Apr 20 17:25:19 CEST 2009
First, sorry again for sending this to Simon twice, I havent been
using mailinglists for a while. :(
> It would be great if you could try to reproduce the problem using only
> gnutls-cli and gnutls-serv.
...
> Please see if you can make an unmodified 2.6.5 server crash.
ok, good news
gnutls-serv and gnutls-cli from 2.6.5 are affected too, but it shots
down only the misconfigured gnutls-cli. gnutls-serv only throws
message:
Error: A TLS packet with unexpected length was received.
I'm gonna fixed-client&unfixed-server combination in few minutes, hope
it doesn't die.
I'm posting the keys used to do this below. If you want full output of
crashed gnutls-cli, please tell me.
I run it this way:
gnutls-serv --x509cafile ca.crt --dhparams dh1024.pem --x509dsakeyfile
ssl.key --x509dsacertfile ssl.crt --require-cert
and
gnutls-cli --x509cafile ca.crt --x509keyfile c.key --x509certfile
c.crt localhost -p 5556
Keys are:
c.crt
-----BEGIN CERTIFICATE-----
MIIFJjCCBBCgAwIBAgIESeyRtTALBgkqhkiG9w0BAQUwVzELMAkGA1UEBhMCQ1ox
DjAMBgNVBAoTBXByYWhhMQswCQYDVQQLEwJuZTENMAsGA1UEBxMEdm9sZTEOMAwG
A1UECBMFbmV2aW0xDDAKBgNVBAMTA2V4YTAeFw0wOTA0MjAxNTE2MDdaFw0wOTEw
MTcxNTE2MTBaMFMxCzAJBgNVBAYTAkNaMQwwCgYDVQQKEwNhc2QxDDAKBgNVBAsT
A2FzZDEMMAoGA1UEBxMDYXNkMQwwCgYDVQQIEwNhc2QxDDAKBgNVBAMTA2FzZDCC
AqMwggIYBgcqhkjOOAQBMIICCwKCAQDEN3nB6G8hSwKVdDRwZBJHO2S4bvcfAcd7
gR8Sdk8UzPhTidThYPuKvRUZFwSnicAeuudQdXDcE6wH1R1FdwpQ5frSkzcaduZJ
1AGnoc+FFC/zzUqopB7H1W6Ucb0gWn+5z/hdtY/zgJMyAgBULe6WxJVWXElOLWpB
BJA34mbhw2fhncjcj+k3pUZXbxfbYGUUP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47:f6:b0:3f:78
88:31:44:ff:24:74:54:c7:1f:56:e7:c2
0f:88:66:ae:91:ea:c4:14:c3:16:35:91
66:5b:5a:80:e1:fd:5e:52:54:00:b2:43
83:1c:a1:e4:8e:a8:e4:dd:87:0d:7c:f6
88:7e:4b:5b:0d:5a:1e:ed:7b:ca:5e:9d
22:71:9a:1b:86:24:aa:b0:84:98:14:2e
0d:33:b6:94:77:a9:d0:07:02:0c:53:04
6e:8a:07:d3:6a:32:2a:32:3f:23:0f:42
4d:63:79:57:48:c8:05:a7
-----BEGIN DH PARAMETERS-----
MIGHAoGBAK2pZnF6NHLu4luT9B4hK51nhlJH9rA/eIgxRP8kdFTHH1bnwg+IZq6R
6sQUwxY1kWZbWoDh/V5SVACyQ4McoeSOqOTdhw189oh+S1sNWh7te8penSJxmhuG
JKqwhJgULg0ztpR3qdAHAgxTBG6KB9NqMioyPyMPQk1jeVdIyAWnAgEF
-----END DH PARAMETERS-----
ssl.crt
-----BEGIN CERTIFICATE-----
MIIFLDCCBBagAwIBAgIESexK4DALBgkqhkiG9w0BAQUwVzELMAkGA1UEBhMCQ1ox
DjAMBgNVBAoTBXByYWhhMQswCQYDVQQLEwJuZTENMAsGA1UEBxMEdm9sZTEOMAwG
A1UECBMFbmV2aW0xDDAKBgNVBAMTA2V4YTAeFw0wOTA0MjAxMDEzNTNaFw0xOTA0
MTgxMDEzNTdaMFcxCzAJBgNVBAYTAkNaMQwwCgYDVQQKEwNCbGUxDTALBgNVBAsT
BFNtcnQxDjAMBgNVBAcTBUt0ZXJhMQ4wDAYDVQQIEwVCbGlqZTELMAkGA1UEAxMC
TmUwggKlMIICGgYHKoZIzjgEATCCAg0CggEAygAmvvWeV4auzm9ZFG1+omVlyVqH
elM0qqJ717DdaKoJlIiCAgwsg7r+zpz4ekncShy0UxRm2yElW6p90Otx9QrCWTpv
jP6wHiTptk/vUEDSQ6/Zlqax7mI946XfoIxx3JCavVzBvNgUQAOai6BpjJ4a9ZVL
BdP2gSldt9XJ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