initial commit

This commit is contained in:
AJ ONeal 2018-04-30 18:03:12 -06:00
parent cbf9c13349
commit 549771a0bc
4 changed files with 33 additions and 0 deletions

1
.gitignore vendored Normal file
View File

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

19
index.html Normal file
View File

@ -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 Normal file
View File

@ -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 Normal file
View File

@ -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';
}());