diff --git a/app/index.html b/app/index.html
index 421d727..6019fef 100644
--- a/app/index.html
+++ b/app/index.html
@@ -148,7 +148,7 @@
- Agree to  Greenlock™ Terms of Service ?
+ Agree to  Greenlock™ Terms of Service ?
+
+
+
+
-
-
-
-
diff --git a/app/js/app.js b/app/js/app.js
index e56e7a9..af0b500 100644
--- a/app/js/app.js
+++ b/app/js/app.js
@@ -48,32 +48,37 @@
});
});
}
- testEcdsaSupport().then(function () {
- console.info("[crypto] ECDSA is supported");
- BROWSER_SUPPORTS_ECDSA = true;
- localStorage.setItem('version', '1');
- return true;
- }).catch(function () {
- console.warn("[crypto] ECDSA is NOT fully supported");
- BROWSER_SUPPORTS_ECDSA = false;
+ function testKeypairSupport() {
+ return testEcdsaSupport().then(function () {
+ console.info("[crypto] ECDSA is supported");
+ BROWSER_SUPPORTS_ECDSA = true;
+ localStorage.setItem('version', '1');
+ return true;
+ }).catch(function () {
+ console.warn("[crypto] ECDSA is NOT fully supported");
+ BROWSER_SUPPORTS_ECDSA = false;
- // fix previous firefox browsers
- if (!localStorage.getItem('version')) {
- localStorage.clear();
- localStorage.getItem('version', '1');
+ // fix previous firefox browsers
+ if (!localStorage.getItem('version')) {
+ localStorage.clear();
+ localStorage.setItem('version', '1');
+ }
+
+ return false;
+ });
+ }
+ testKeypairSupport().then(function (ecdsaSupport) {
+ if (ecdsaSupport) {
+ return true;
}
- // DO NOT RETURN HERE
- testRsaSupport().then(function () {
+ return testRsaSupport().then(function () {
console.info('[crypto] RSA is supported');
}).catch(function (err) {
console.error('[crypto] could not use either EC nor RSA.');
console.error(err);
window.alert("Your browser is cryptography support (neither RSA or EC is usable). Please use Chrome, Firefox, or Safari.");
});
-
- // RETURN HERE
- return false;
});
var apiUrl = 'https://acme-{{env}}.api.letsencrypt.org/directory';
@@ -238,7 +243,7 @@
if (jwk) {
p = PromiseA.resolve(jwk);
} else {
- p = createKeypair();
+ p = testKeypairSupport().then(createKeypair);
}
function createAccount(jwk) {
diff --git a/index.html b/index.html
index bb7e5d5..1260a96 100644
--- a/index.html
+++ b/index.html
@@ -55,7 +55,7 @@
Go
Domain, subdomain, or wildcard domain
-
+
-
Why you need SSL certificates
- If your website doesn't have the green lock from an SSL Certificate, Google Chrome will soon label your website as not secure.
+ Why you need HTTPS
+ SSL Certificates are required for secure login, accepting payments, and for browsers like Google Chrome to stop showing security warnings to your users.