Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.7 Production Series
»
choose an existing certificate for user in opnsense 24.7.X
« previous
next »
Print
Pages: [
1
]
2
Author
Topic: choose an existing certificate for user in opnsense 24.7.X (Read 685 times)
davidit29
Newbie
Posts: 1
Karma: 0
choose an existing certificate for user in opnsense 24.7.X
«
on:
October 09, 2024, 04:57:25 pm »
since version 24.7, it seems impossible to choose an existing client certificate for a user, it was possible to do it before in version 24.1.X.
This is something known, I have not found a solution except to modify the configuration file manually.
Thanks in advance if someone can provide a solution!
Logged
chimmmpie
Newbie
Posts: 5
Karma: 0
Re: choose an existing certificate for user in opnsense 24.7.X
«
Reply #1 on:
October 15, 2024, 09:48:24 am »
I noticed the same issue.
As a side note i don't think opnsense does much with the certificate connection to the user but still it should be possible.
Logged
chimmmpie
Newbie
Posts: 5
Karma: 0
Re: choose an existing certificate for user in opnsense 24.7.X
«
Reply #2 on:
October 16, 2024, 01:59:27 pm »
Here is a link to a related issue:
https://github.com/opnsense/core/issues/7845
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: choose an existing certificate for user in opnsense 24.7.X
«
Reply #3 on:
October 16, 2024, 02:15:05 pm »
This was discussed a couple of times. A link is made when the CNs of the user and the certificate meet (which is when the certificate is actually the user's certificate).
Cheers,
Franco
Logged
chimmmpie
Newbie
Posts: 5
Karma: 0
Re: choose an existing certificate for user in opnsense 24.7.X
«
Reply #4 on:
October 17, 2024, 11:14:46 am »
Agree to disagree.
As a sysadmin i am the one who decides on what certificate belongs to what user. Not any kind of rule from any kind of system.
If i decide the issue a certificate per user device it will never match the username because i use the device name.
It still would be nice to be able to connect the user to that certificate. It would be even better if opnsense would enforce the certificate usage to only the given user or users if that certificate is linked to more than one user.
@franco could u elaborate on the direction opnsense is going with this. And/or any other places where we could have a discussion on it.
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: choose an existing certificate for user in opnsense 24.7.X
«
Reply #5 on:
October 17, 2024, 02:29:49 pm »
> Agree to disagree.
Fair enough.
> @franco could u elaborate on the direction opnsense is going with this. And/or any other places where we could have a discussion on it.
Can you narrow your scope of the question. Do you talk about TLS user auth in OpenVPN or something else?
Cheers,
Franco
Logged
chimmmpie
Newbie
Posts: 5
Karma: 0
Re: choose an existing certificate for user in opnsense 24.7.X
«
Reply #6 on:
October 17, 2024, 02:35:29 pm »
I mean the connection between the certificate and user in the opnsense UI.
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: choose an existing certificate for user in opnsense 24.7.X
«
Reply #7 on:
October 17, 2024, 02:36:32 pm »
I've asked a simple question I'm willing to follow up on
Logged
chimmmpie
Newbie
Posts: 5
Karma: 0
Re: choose an existing certificate for user in opnsense 24.7.X
«
Reply #8 on:
October 21, 2024, 09:01:19 am »
I mean the certificate check on the vpn in relation to the linked user certificate.
Currently it's more a UI thing as it is not enforced i think. Is the intention to still make it possible to manually(/api) connect a user to any certificate and enforce this relationship on openvpn auth?
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: choose an existing certificate for user in opnsense 24.7.X
«
Reply #9 on:
October 21, 2024, 09:08:13 am »
What I'm trying to get at is the benefit feature wise. We already theorised a bit what this could mean:
1. Client certificates cannot be reused in the config exporter?
2. Administrator is missing "trust" in the system even though OpenVPN will obviously allow to connect using a valid certificate.
3. The administrator would like to enforce CN, which would make sense given that if CN is the same or arbitrary it's harder to revoke a specific connection (and if you have all on the same CN you always disconnect all users).
4. Group CN support in order to match a CN of a certificate to a group and associate users with this group to connect (also fixes #1).
Cheers,
Franco
Logged
Patrick M. Hausen
Hero Member
Posts: 6812
Karma: 572
Re: choose an existing certificate for user in opnsense 24.7.X
«
Reply #10 on:
October 21, 2024, 09:25:31 am »
Wild guess:
Administrator wants to limit user X to cert Y, but for an arbitrary cert not matching CN and user name "for reasons".
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: choose an existing certificate for user in opnsense 24.7.X
«
Reply #11 on:
October 21, 2024, 10:50:56 am »
Ok here is my whole point: they can?
Cheers,
Franco
Logged
sjjh
Jr. Member
Posts: 55
Karma: 2
Re: choose an existing certificate for user in opnsense 24.7.X
«
Reply #12 on:
November 21, 2024, 05:53:25 pm »
My current situation here is, that I'm assigning one existing cert to multiple users (not matching CN) for VPN access (like, as a MFA next to a password). (Please let's not discuss if this is a sensible setup, I inherited it and need a working setup now to buy time to design and introduce a better concept for my users, e.g., using individual certs per user.)
@franco if I understood you correctly, this should still be doable. I fail so in the Web UI. Can you please elaborate how I can assign an existing non matching cert to a user?
Thanks for your support!
Simon
Logged
franco
Administrator
Hero Member
Posts: 17661
Karma: 1611
Re: choose an existing certificate for user in opnsense 24.7.X
«
Reply #13 on:
November 21, 2024, 06:04:01 pm »
Again, are we talking about client export or just simple OpenVPN client side? "Strict User/CN Matching" is off by default so any certificate given will do (unless expired or revoked). It can be the same for all clients. Coercing the client exporter to give the arbitrary cert will be much harder (and very likely needs a number of code changes).
Cheers,
Franco
Logged
sjjh
Jr. Member
Posts: 55
Karma: 2
Re: choose an existing certificate for user in opnsense 24.7.X
«
Reply #14 on:
November 21, 2024, 06:12:14 pm »
Sorry for expressing myself not clear enough. And I'm also not sure if I understand your question about "client export vs. simple OpenVPN client side".
I tested a little further and for me it seems to work by:
1. creating a user without adding/assigning any certificate
2. client export within OpenVPN, with the certificate I used to attach to my VPN users.
So there might actually not be a (technical) problem for me right now. And I might just have been confused ("usability problem") by not being able to add the cert to the user anymore and not seeing any users linked anymore to the cert in OpenVPN > Client export. Sry for the noise.
Logged
Print
Pages: [
1
]
2
« previous
next »
OPNsense Forum
»
English Forums
»
24.7 Production Series
»
choose an existing certificate for user in opnsense 24.7.X