-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate a self-signed placeholder certificate for use when real certificate not available #32
Comments
I like this proposal. However I need to touch the |
@oerdnj I would like to make changes to the mod_md <-> mod_ssl interface next week. Do you have some spare cycles there to push an updated PPA? |
Sure, when exactly? |
Monday most likely. I'll notify you here. Thanks!
… Am 01.09.2017 um 20:33 schrieb Ondřej Surý ***@***.***>:
Sure, when exactly?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
JFTR I finally got to creating |
…atible to previous mod_ssl patch, but fallbacks will not work. * Provide a temporary, self-signed certificate with a speaking command and domain name if we have no other cert for a Managed Domain, yet. Refs github issue #32 * Continue to provide expired or not-completely matching, existing certificate for a Managed Domain until the renewal was successful. This is helpful when one adds a DNS name to a MD, so the previous domains can be served while a new cert is requested.
Available in v0.9.0 together with new mod_ssl patch. @oerdnj : the interface between |
Updated the mod_ssl patch and packaged 0.9.0 in the ppa:ondrej/apache2 repository. |
Thanks! Wonderful! |
@jsha whenever you find time to test this, a short ping here would be nice. |
I checked out v0.9.2 and did
|
Thanks for including the conf. There is no directive that tells mod_ssl that it should handle *:443 (I know, this is kind of what one would expect it to do by itself...but...) How does the following behave?
|
Ah, of course! If fixed that and did
|
Do you have any other SSL* directives set? Try something more complete, such as:
What is the OpenSSL version your server is linked with? In the error_log you see something like
|
Ok, in v0.9.4 @michael-koeller added some nice test cases. We needed fixes in mod_md and a change in mod_ssl to get it working (v5 of the patch). But now the fallback certificate is in place on a new Managed Domain. |
Sorry I forgot to reply to this. This is what I have as part of my default apache config (I symlinked in ssl.conf into mods-enabled from mods-available).
Here's another log: md.error.log.txt I downloaded and installed v0.9.4 but get the same error. Note: I did an |
@oerdnj ping! It would be nice if you could push the lastest mod_ssl patch and the new v0.9.5 - if you find the time! Thanks! |
|
Alright, upgraded to latest Apache2 now it works great, thanks! One quibble: For some reason the placeholder certificate causes
|
Using version 0.9.6:
If the error still persists: Does your local curl give more information about the different error causes if your turn on verbose mode? |
Still repros on mod_md v0.9.6.
|
Aha,
|
…ut ```--enable-werror```, since there were some warnings fixed in Apache httpd trunk. * Removed obsolete function from interface to mod_ssl. Module now requires at least mod_ssl patch v4 in place. * Fallback certificates has version set and no longer claims to be a CA. (re issue #32) * ```MDRequireHttps``` now happens before any ```Redirect```.
Thanks, this should be fixed in v0.9.7 now. |
Confirmed, this now successfully fetches with curl for me. Thanks for the fix. |
Steps to reproduce:
Run Apache with a failing MD config (e.g. see #31), and try to connect via SSL (e.g.
curl -k https://172.17.0.2:443
).Expected result: Bogus certificate
Actual result:
curl: (35) gnutls_handshake() failed: Error in the pull function.
In the Apache error logs, I see:
Ideally mod_md should generate a placeholder self-signed certificate for use when there is no real cert available, so handshakes can be completed. This will also avoid spamming the error logs in such a situation.
The text was updated successfully, but these errors were encountered: