Hi everybody!
I am using OpenSER 1.1 with TLS. I have generate the client and server certificate with the scripts gen_rootCA.sh and gen_usercert.sh. Everything works fine, but I have generate certificate for my UA with another CA and I have added this CA to the file user-cacert.pem. When I try to connect with my UA, OpenSER logs an error like:
"tls_error: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca"
My file user-cacert.pem looks like: -------BEGIN CERTIFICATE------ MAOIposio..... --------END CERTIFICATE-------- -------BEGIN CERTIFICATE------ MJ809il...... --------END CERTIFICATE--------
I think that OpenSER takes only the first CA certificate and not all the followings.
Did someone have some experience with that case?
Regards
Greg
Hi Greg!
I have not tested this, but from reading the openssl docs I had the feeling that all the CAs in the ca-file will be used.
Is the CA the only one in the ca-file or are the multiple CAs in the ca-file? Can you try if it works when using only a single CA in the ca-file?
regards klaus
On Sun, November 5, 2006 20:39, Gregoire said:
Hi everybody!
I am using OpenSER 1.1 with TLS. I have generate the client and server certificate with the scripts gen_rootCA.sh and gen_usercert.sh. Everything works fine, but I have generate certificate for my UA with another CA and I have added this CA to the file user-cacert.pem. When I try to connect with my UA, OpenSER logs an error like:
"tls_error: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca"
My file user-cacert.pem looks like: -------BEGIN CERTIFICATE------ MAOIposio..... --------END CERTIFICATE-------- -------BEGIN CERTIFICATE------ MJ809il...... --------END CERTIFICATE--------
I think that OpenSER takes only the first CA certificate and not all the followings.
Did someone have some experience with that case?
Regards
Greg
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hi! When a single CA is in the file, there is no problem. But when I put multiple CAs, only the first one is taken. OpenSER doesn't care about the others.
Greg Klaus Darilion wrote:
Hi Greg!
I have not tested this, but from reading the openssl docs I had the feeling that all the CAs in the ca-file will be used.
Is the CA the only one in the ca-file or are the multiple CAs in the ca-file? Can you try if it works when using only a single CA in the ca-file?
regards klaus
On Sun, November 5, 2006 20:39, Gregoire said:
Hi everybody!
I am using OpenSER 1.1 with TLS. I have generate the client and server certificate with the scripts gen_rootCA.sh and gen_usercert.sh. Everything works fine, but I have generate certificate for my UA with another CA and I have added this CA to the file user-cacert.pem. When I try to connect with my UA, OpenSER logs an error like:
"tls_error: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca"
My file user-cacert.pem looks like: -------BEGIN CERTIFICATE------ MAOIposio..... --------END CERTIFICATE-------- -------BEGIN CERTIFICATE------ MJ809il...... --------END CERTIFICATE--------
I think that OpenSER takes only the first CA certificate and not all the followings.
Did someone have some experience with that case?
Regards
Greg
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hi Gregoire!
Sorry for the late response - I was at the Openser Summit.
Regarding you problem: openser uses SSL_CTX_load_verify_locations(..) to load the CA. As the docs say (http://www.openssl.org/docs/ssl/SSL_CTX_load_verify_locations.html) al the CAs in this file will be used:
... If CAfile is not NULL, it points to a file of CA certificates in PEM format. The file can contain several CA certificates identified by
-----BEGIN CERTIFICATE----- ... (CA certificate in base64 encoding) ... -----END CERTIFICATE-----
sequences. Before, between, and after the certificates text is allowed which can be used e.g. for descriptions of the certificates. ...
Thus, it should work out of the box. I will try it myself.
regards klaus
Gregoire wrote:
Hi! When a single CA is in the file, there is no problem. But when I put multiple CAs, only the first one is taken. OpenSER doesn't care about the others.
Greg Klaus Darilion wrote:
Hi Greg!
I have not tested this, but from reading the openssl docs I had the feeling that all the CAs in the ca-file will be used.
Is the CA the only one in the ca-file or are the multiple CAs in the ca-file? Can you try if it works when using only a single CA in the ca-file?
regards klaus
On Sun, November 5, 2006 20:39, Gregoire said:
Hi everybody!
I am using OpenSER 1.1 with TLS. I have generate the client and server certificate with the scripts gen_rootCA.sh and gen_usercert.sh. Everything works fine, but I have generate certificate for my UA with another CA and I have added this CA to the file user-cacert.pem. When I try to connect with my UA, OpenSER logs an error like:
"tls_error: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca"
My file user-cacert.pem looks like: -------BEGIN CERTIFICATE------ MAOIposio..... --------END CERTIFICATE-------- -------BEGIN CERTIFICATE------ MJ809il...... --------END CERTIFICATE--------
I think that OpenSER takes only the first CA certificate and not all the followings.
Did someone have some experience with that case?
Regards
Greg
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hi Gregoire!
I've tested it and it works for me without problems. Maybe there is a typo in your CA file? I'm having 2 CAs in my ca file - see below.
regards klaus
root@pb94:/home/cert# cat CA.crt adrians ag-project CA cert -----BEGIN CERTIFICATE----- MIIEpzCCA4+gAwIBAgIJAKd1Wdd9aFZyMA0GCSqGSIb3DQEBBQUAMIGXMRwwGgYD VQQDExNBRyBQcm9qZWN0cyBSb290IENBMRYwFAYDVQQIEw1Ob29yZC1Ib2xsYW5k MQswCQYDVQQGEwJOTDEUMBIGA1UEChMLQUcgUHJvamVjdHMxFDASBgNVBAsTC01h bmFnZWQgRE5TMSYwJAYJKoZIhvcNAQkBFhdzdXBwb3J0QGFnLXByb2plY3RzLmNv bTAeFw0wNTEwMzEwNzE4NTZaFw0yNDEyMzAwNzE4NTZaMIGXMRwwGgYDVQQDExNB RyBQcm9qZWN0cyBSb290IENBMRYwFAYDVQQIEw1Ob29yZC1Ib2xsYW5kMQswCQYD VQQGEwJOTDEUMBIGA1UEChMLQUcgUHJvamVjdHMxFDASBgNVBAsTC01hbmFnZWQg RE5TMSYwJAYJKoZIhvcNAQkBFhdzdXBwb3J0QGFnLXByb2plY3RzLmNvbTCCASIw DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMZoTrGdeLrCOuNE6qMdVaMmYNpv wSWbu7BXsx6FmRQIIcVgeQWLcPyHMpgbTAvNcpKVfytPsNU23h22hTuDe7SnIwuQ R+8//WR3PqZRXQUqhTxLB7xYleYVy+JJZzxHmyworv9Prvzd75j7d/LaZDmfMBp6 qMW/rQkpIrw0f2x55hIciHdIVmPtturVBPuEspcCxM+ZgANSlWmPqLRSIZLvAbwH mWtnA9KwU+fjI9LKKS1aLtOeAKCt9GJEYby4VzO8o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TIFICATE-----
root@pb94:/home/cert#
Klaus Darilion wrote:
Hi Gregoire!
Sorry for the late response - I was at the Openser Summit.
Regarding you problem: openser uses SSL_CTX_load_verify_locations(..) to load the CA. As the docs say (http://www.openssl.org/docs/ssl/SSL_CTX_load_verify_locations.html) al the CAs in this file will be used:
... If CAfile is not NULL, it points to a file of CA certificates in PEM format. The file can contain several CA certificates identified by
-----BEGIN CERTIFICATE----- ... (CA certificate in base64 encoding) ... -----END CERTIFICATE-----
sequences. Before, between, and after the certificates text is allowed which can be used e.g. for descriptions of the certificates. ...
Thus, it should work out of the box. I will try it myself.
regards klaus
Gregoire wrote:
Hi! When a single CA is in the file, there is no problem. But when I put multiple CAs, only the first one is taken. OpenSER doesn't care about the others.
Greg Klaus Darilion wrote:
Hi Greg!
I have not tested this, but from reading the openssl docs I had the feeling that all the CAs in the ca-file will be used.
Is the CA the only one in the ca-file or are the multiple CAs in the ca-file? Can you try if it works when using only a single CA in the ca-file?
regards klaus
On Sun, November 5, 2006 20:39, Gregoire said:
Hi everybody!
I am using OpenSER 1.1 with TLS. I have generate the client and server certificate with the scripts gen_rootCA.sh and gen_usercert.sh. Everything works fine, but I have generate certificate for my UA with another CA and I have added this CA to the file user-cacert.pem. When I try to connect with my UA, OpenSER logs an error like:
"tls_error: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca"
My file user-cacert.pem looks like: -------BEGIN CERTIFICATE------ MAOIposio..... --------END CERTIFICATE-------- -------BEGIN CERTIFICATE------ MJ809il...... --------END CERTIFICATE--------
I think that OpenSER takes only the first CA certificate and not all the followings.
Did someone have some experience with that case?
Regards
Greg
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users