Daniel Pocock: Let's Encrypt torpedoes cost and maintenance issues for Free RTC
Many people have now heard of the EFF-backed free certificate authority Let's Encrypt. Not only is it free of charge, it has also introduced a fully automated mechanism for certificate renewals, eliminating a tedious chore that has imposed upon busy sysadmins everywhere for many years.
These two benefits - elimination of cost and elimination of annual maintenance effort - imply that server operators can now deploy certificates for far more services than they would have previously.
The TLS chapter of the RTC Quick Start Guide has been updated with details about Let's Encrypt so anybody installing SIP or XMPP can use Let's Encrypt from the outset.
For example, somebody hosting basic Drupal or Wordpress sites for family, friends and small community organizations can now offer them all full HTTPS encryption, WebRTC, SIP and XMPP without having to explain annual renewal fees or worry about losing time in their evenings and weekends renewing certificates manually.
Even people who were willing to pay for a single certificate for their main web site may have snubbed their nose at the expense and ongoing effort of having certificates for their SMTP mail server, IMAP server, VPN gateway, SIP proxy, XMPP server, WebSocket and TURN servers too. Now they can all have certificates.
Early efforts at SIP were doomed without encryption
In the early days, SIP messages would be transported across the public Internet in UDP datagrams without any encryption. SIP itself wasn't originally designed for NAT and a variety of home routers were created with "NAT helper" algorithms that would detect and modify SIP packets to try and work through NAT. Sadly, in many cases these attempts to help actually clash with each other and lead to further instability. Conversely, many rogue ISPs could easily detect and punish VoIP users by blocking their calls or even cutting their DSL line. Operating SIP over TLS, usually on the HTTPS port (TCP port 443) has been an effective way to quash all of these different issues.
While the example of SIP is one of the most extreme, it helps demonstrate the benefits of making encryption universal to ensure stability and cut out the "man-in-the-middle", regardless of whether he is trying to help or hinder the end user.
Is one certificate enough?
Modern SIP, XMPP and WebRTC require additional services, TURN servers and WebSocket servers. If they are all operated on port 443 then it is necessary to use different hostnames for each of them (e.g. turn.example.org and ws.example.org. Each different hostname requires a certificate. Let's Encrypt can provide those additional certificates too, without additional cost or effort.
The future with Let's Encrypt
The initial version of the Let's Encrypt client, certbot, fully automates the workflow for people using popular web servers such as Apache and nginx. The manual or certonly modes can be used for other services but hopefully certbot will evolve to integrate with many other popular applications too.
Currently, Let's Encrypt's certbot tool issues certificates to servers running on TCP port 443 or 80. These are considered to be a privileged ports whereas any port over 1023, including the default ports used by applications such as SIP (5061), XMPP (5222, 5269) and TURN (5349), are not privileged ports. As long as certbot maintains this policy, it is generally necessary to either run a web server for the domain associated with each certificate or run the services themselves on port 443. There are other mechanisms for domain validation and various other clients supporting different subsets of them. Running the services themselves on port 443 turns out to be a good idea anyway as it ensures that RTC services can be reached through HTTP proxy servers who fail to let the HTTP CONNECT method access any other ports.
Many configuration tasks are already scripted during the installation of packages on a GNU/Linux distribution (such as Debian or Fedora) or when setting up services using cloud images (for example, in Docker or OpenStack). Due to the heavily standardized nature of Let's Encrypt and the widespread availability of the tools, many of these package installation scripts can be easily adapted to find or create Let's Encrypt certificates on the target system, ensuring every service is running with TLS protection from the minute it goes live.
If you have questions about Let's Encrypt for RTC or want to share your experiences, please come and discuss it on the Free-RTC mailing list.
Earlier this morning,
A while back, I found myself in need of two webservers that would terminate TLS (with different rules). I wanted to run some custom code I d written (which uses TLS peer authentication), and also nginx on port 443.
The best way I figured out how to do this was to write a tool to sit on port 443, and parse TLS Client Hello packets, and dispatch to the correct backend depending on the SNI name.
SNI, or Server Name Indication allows the client to announce (yes over cleartext!) what server it s looking for, similar to the HTTP Host header. Sometimes, like in the case above, the Host header won t work, since you ve already done a TLS handshake by the time you figure out who they re looking for.
I also spun the Client Hello parser out into its own importable package, just in case someone else finds themselves in this same boat.
The code s up on
My experiences with Amazon reviewing have been somewhat unusual. A review of a
For the first time in our history,
Several years ago I've
Over the past year I ve been refining my understanding of the core
claims of Kantian ethics. I ve realised that I have deeply Kantian
intuitions about a lot of issues, and I understand these intuitions
better now that I can put them in Kantian terms. Consider two
exercises of state power: riot police suppressing protesters by
non-lethal means, and soldiers shooting protesters to death. I feel
more uncomfortable thinking about the first: there s something
altogether more sinister about it than the second, even though the
second is much more sad.
I think that the reason is that non-lethal weaponry is designed to
take away people s agency, and it often achieves this aim by means of
emotional manipulation. Riot police use so-called baton charges to
incite fearful retreat. Protesters have reasoned that in their
political situation, they have a duty to resist the incumbent
government. Riot police seek to unseat this conviction and cause fear
to determine what the protesters will do. In Kantian terms, the
riot police fail to respect the moral agency of the protesters by
seeking to unseat the moral personality s determination of what the
protester will do.
A controversial example that Kant uses to make this point is the axe
murderer case. Kant asks us to imagine that someone bangs on our
front door and begs us to hide him in our house, because someone who
wishes to kill him is coming up behind them. We do so. When the axe
murderer arrives, he goes door-to-door and asks us whether the
intended victim is in each house. Kant says that it is morally wrong
to lie to the axe murderer and say that the victim is not in your
house. How could this be? Surely there is a moral duty to protect
the victim from being killed? Indeed there is, but when it comes into
conflict with the duty not to lie, that second duty wins out. That s
because respecting the moral agency of individuals is paramount. In
this case, we would fail to respect the murderer s agency if we didn t
allow him to take the decision to murder or not murder the victim; by
lying to him we (disrespectfully) bypass his choice as to whether to
do it.
It s obviously crazy to say that we are morally required to give up
the victim. Kant gives the wrong answer in this case. However, the
case definitely reveals a requirement to respect other people s view
of what they should do, and give them a chance to do it. Similarly it
seems like we shouldn t give semi-automatics to our riot police, but
there s something wrong with a lot of what they do.
During the recent campaigns about Britain s EU referendum, some
criticised Jeremy Corbyn s campaigning on the grounds that he failed
to make an emotional appeal, instead asking people to make their own
rational decision when they come to cast their vote. So he lost out
the emotional appeals other people were making. It seems that he was
successfully respecting individual agency. You ve got to give people
a chance to live up to their own idea of what they should do.
I m not sure how to reconcile these various ideas, and I m not sure
what it says about me that I find non-lethal weaponry as uncomfortable
as I do.
How to help
A good first step is simply looking over the
My monthly report covers what I have been doing for Debian. I write it for Debian s Long Term Support sponsors but also for the wider free software community in the hope that it might inspire people to get more involved with Debian or free software in general.
Debian Android