You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Domen Vrankar <do...@gmail.com> on 2016/05/25 12:14:08 UTC
C++ broker SSL authentication and ACL
Hi,
Is it possible to write ACL so that it takes into account both
certificate common name and ca certificate that issued it when
granting access rights?
What I'm trying to do:
I'm using SSL authentication and ACL with C++ qpid broker like this:
- On broker side I have acl file with <client_cert_common_name>@QPID
entries for each certificate with assigned access rights,
- Also on broker side I have a NSS database that contains soft
certificates (ca certificate and server certificate),
- On client side I have a NSS database with soft client certificate
that was issued with ca certificate from broker NSS database and
public ca certificate from broker NSS database.
This works fine as long as there is only one CA issuing certificates
but I could generate some client certificates with a different ca
certificate and add that ca certificate to broker NSS database.
From that ca certificate I could issue a certificate with same common name.
Now all of a sudden two certificates from different CA agencies have
access to same queues and I don't want that but would still like to
support client certificates from different ca authorities.
Is such configuration even possible/supported/correct thing to go for?
Thanks,
Domen
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org
Re: C++ broker SSL authentication and ACL
Posted by Jakub Scholz <ja...@scholz.cz>.
I don't think there is a way in the C++ broker how to include the CA in the
identity - it is always taken from the certificate it self only.
Are you using regular public CA (e.g. Verisign)? Or some private
certification authority? I think that the common name is supposed to carry
some information which is verified by the CA which signed it. Therefore it
is expected that if you have a signed certificate with CN=xxx from two
different authorities, then they are supposed to be issued to the same
entity (user / person / company). And therefore it should not matter which
CA signed it as long as you trust the CA.
On Wed, May 25, 2016 at 2:14 PM, Domen Vrankar <do...@gmail.com>
wrote:
> orks fine as long as there is only one CA issuing certificates
> but I could generate some client certificates with a different ca
> certificate and add that ca certificate to broker NSS database.
> From that ca certificate I could issue a certificate with same common name.
> Now all of a sudden two certificates from different CA agencies have
> access to same queues and I don't w
>