security/stunnel: Make use of ACME certs#2854
security/stunnel: Make use of ACME certs#2854johnnyslee wants to merge 2 commits intoopnsense:masterfrom
Conversation
security/stunnel/src/opnsense/mvc/app/models/OPNsense/Stunnel/Stunnel.xml
Show resolved
Hide resolved
2152e22 to
0749c7a
Compare
security/stunnel/src/opnsense/scripts/stunnel/generate_certs.php
Outdated
Show resolved
Hide resolved
|
Beyond the clear technical intent what is the benefit of the intermediate certificates here? The PR doesn’t explain and I’m sure @AdSchellevis won’t accept this without the use case that doesn’t work without it (it’s not about acme support per se). |
|
The use-case should be clear and preferably explained in a separate PR to the docs (https://docs.opnsense.org/manual/how-tos/stunnel.html) as well, as adding certs here will lead to unexpected results for people using it to pin trust here. |
|
I'm using Stunnel with ACME cert to provide DNS-over-TLS (DoT) for my mobile devices. |
Add an option, defaults disabled, to chain intermediate CAs which is required when using ACME cert.
For example, we can now select "Restart Stunnel" from `Service/ACME-Client/Automations>Run-Command>System-or-Plugin-Command` in GUI.
|
There were now closed #2045 and #1905, meaning there were people tried to use Stunnel with ACME certs for their own purposes. So I thought this time adding the feature as a default-disabled option might put less pressure for this to be merged. Would adding |
|
I'm not sure to be honest, if the use case is hard to explain, I'm not sure we should try to merge it in the product either. If someone can add a simple example in the documentation where this feature plays a role, I don't mind that much adding an advanced toggle to allow chaining certs, if no one can explain it, it might be better to just do this without the gui as it will only raise questions. |
|
As simple as the following? DNS-over-TLS server(Not resolver, use Unbound, Stubby, etc. for DoT resolver instead) Skipping the part "how to add Also, with intermediates: |
commit e873aa41591442e16ec0581fa8b6e8696a1821ff
Author: Ad Schellevis <ad@opnsense.org>
Date: Mon Jul 4 14:23:32 2022 +0200
security/stunnel: Add option to chain intermediate CAs (#2854), better explain impact and add move to advanced
commit 1e86212
Author: Johnny S. Lee <6614805+johnnyslee@users.noreply.github.com>
Date: Mon Feb 21 09:52:26 2022 +0800
security/stunnel: Allow GUI usage of restart action
For example, we can now select "Restart Stunnel" from
`Service/ACME-Client/Automations>Run-Command>System-or-Plugin-Command`
in GUI.
commit 005af92
Author: Johnny S. Lee <6614805+johnnyslee@users.noreply.github.com>
Date: Mon Feb 21 09:45:28 2022 +0800
security/stunnel: Add option to chain intermediate CAs
Add an option, defaults disabled, to chain intermediate CAs which is
required when using ACME cert.
|
merged with small modifications in d162124 (move setting to advanced, explain impact) |
…ip chain by default. ref #2854 While working on the documentation I noticed my previous comment was wrong, which also invalidates the need for an optional setting. When it comes to the "CAfile" setting, the chain shouldn't be provided, for the listener (the server cert) it shouldn't matter at all if you ship the chain since it's not part of the authentication. This commits simplifies #2854 by removing the option. The current documentation online doesn't need any modifications for this.
|
ok, my mistake, we can (and should) add the chain if available for the listener (6ee383d), for some reason I've totally overlooked how |
|
@AdSchellevis Tested. It works fine. Server cert is automatically bundled with its intermediate CAs. That's great. |
|
@johnnyslee sorry for the confusion and thanks for testing! |
Chain intermediate CAsoption (defaults disabled)restartaction to GUI