This is being ported from code from rsa-compat.js, greenlock.html (bacme.js), and others.
Today is 2018-10-10 come back in a week.