Browse Source

initial commit

master
AJ ONeal 5 years ago
parent
commit
549771a0bc
  1. 1
      .gitignore
  2. 19
      index.html
  3. 6
      install.sh
  4. 7
      js/app.js

1
.gitignore

@ -0,0 +1 @@
js/pkijs.org

19
index.html

@ -0,0 +1,19 @@
<html>
<head>
<title>Greenlock&trade;</title>
</head>
<body>
<form>
<label>What's your domain?</label>
<input type="text" placeholder="www.example.com">
<button type="submit">Next</button>
</form>
<input class="js-acme-directory-url" type="url" placeholder="ACME directory url">
<script src="./js/pkijs.org/v1.3.33/common.js"></script>
<script src="./js/pkijs.org/v1.3.33/asn1.js"></script>
<script src="./js/pkijs.org/v1.3.33/x509_schema.js"></script>
<script src="./js/pkijs.org/v1.3.33/x509_simpl.js"></script>
<script src="./js/app.js"></script>
</body>
</html>

6
install.sh

@ -0,0 +1,6 @@
mkdir -p js/pkijs.org/v1.3.33/
pushd js/pkijs.org/v1.3.33/
wget -c https://raw.githubusercontent.com/PeculiarVentures/PKI.js/41b63af760cacb565dd850fb3466ada4ca163eff/org/pkijs/common.js
wget -c https://raw.githubusercontent.com/PeculiarVentures/PKI.js/41b63af760cacb565dd850fb3466ada4ca163eff/org/pkijs/x509_schema.js
wget -c https://raw.githubusercontent.com/PeculiarVentures/PKI.js/41b63af760cacb565dd850fb3466ada4ca163eff/org/pkijs/x509_simpl.js
wget -c https://raw.githubusercontent.com/PeculiarVentures/ASN1.js/f7181c21c61e53a940ea24373ab489ad86d51bc1/org/pkijs/asn1.js

7
js/app.js

@ -0,0 +1,7 @@
(function () {
'use strict';
console.log("Hello, World!");
window.document.querySelector('.js-acme-directory-url').value = 'https://acme-staging-v02.api.letsencrypt.org/directory';
}());
Loading…
Cancel
Save