Commit Graph

8195 Commits

Author SHA1 Message Date
Joe Bryan
a20122a410 auto-starts :acme 2018-06-29 00:02:34 -04:00
Joe Bryan
6ec776f04a defers :acme initialization to first certificate order 2018-06-29 00:02:34 -04:00
Joe Bryan
5393b129f2 defers pending order creation to after registration 2018-06-28 23:46:24 -04:00
Joe Bryan
26b10e79b5 defer initial http request from +prep 2018-06-28 23:45:10 -04:00
Joe Bryan
c8c90bc587 integrates :acme with %eyre (receive new domains/orders, install certificates) 2018-06-28 23:45:04 -04:00
Anthony Arroyo
e8b7541f1c added cross-ship collections-json 2018-06-28 12:46:19 -07:00
Joe Bryan
76788656d7 refactors +nonce:effect and call sites
and fixes typo in +bad-nonce
2018-06-28 14:04:11 -04:00
Joe Bryan
d40151604b adds comment to and reformats +emsa:rs256 2018-06-28 14:04:11 -04:00
Joe Bryan
8a8b16e0bd adds csr context-specific tag explanation comment 2018-06-28 14:04:11 -04:00
Joe Bryan
d2a7111f58 adds pkcs8 private key en/de-coding 2018-06-28 14:04:11 -04:00
Joe Bryan
f46e226247 updates +der %bit en/de-coding to use +octs, tests for significant trailing zeros 2018-06-28 14:04:11 -04:00
Joe Bryan
56db9be687 refactors jwk public/private key en/de-coding 2018-06-28 14:04:11 -04:00
Joe Bryan
0b4ee7702e improves rsa key generation (somewhat) 2018-06-28 14:04:11 -04:00
Joe Bryan
e194b15b78 refactors +parse:der 2018-06-28 14:04:11 -04:00
Joe Bryan
fffff33dfc refactors +parse:base64 2018-06-28 14:04:11 -04:00
Joe Bryan
a9871af7fb always parse :len bytes in +de:der 2018-06-28 14:04:11 -04:00
Joe Bryan
67590f70c7 updates +de:base64 to output +octs 2018-06-28 14:04:11 -04:00
Joe Bryan
3238cf6ce6 updates +der encoding to produce +octs, base-64 encoding to accept octs 2018-06-28 14:04:11 -04:00
Joe Bryan
b5f352f3bc refactors +der %oct parser 2018-06-28 14:04:11 -04:00
Joe Bryan
84452a6e00 updates ASN.1 %oct to explicitly track byte-length 2018-06-28 14:04:11 -04:00
Joe Bryan
546053fb7c adds failing test case for invalid JWS 2018-06-28 14:04:11 -04:00
Joe Bryan
c2ccfed00f adds reproduction for invalid jws signature 2018-06-28 14:04:11 -04:00
Joe Bryan
90efc6daf0 adds mechanism to print account key 2018-06-28 14:04:11 -04:00
Joe Bryan
92d27238c1 archives active order in +add-order 2018-06-28 14:04:11 -04:00
Joe Bryan
dcf947712f support already-completed domain validation challenges 2018-06-28 14:04:11 -04:00
Joe Bryan
2acd46a701 refactors +sigh-httr 2018-06-28 14:04:11 -04:00
Joe Bryan
1fb2f0624f adds +certificate:event to +sigh-httr 2018-06-28 14:04:11 -04:00
Joe Bryan
3a1c072527 revises :acme state, rewrites API client 2018-06-28 14:04:11 -04:00
Joe Bryan
1029a44758 tweaks and formats block comments 2018-06-28 14:04:11 -04:00
Joe Bryan
31f95df959 additional refactoring and comment cleanup in asn1 and pkcs library cores 2018-06-28 14:04:11 -04:00
Joe Bryan
218369c85d adds more comments and further refactors +asn1 and +der 2018-06-28 14:04:11 -04:00
Joe Bryan
f7a6ad1fb2 first pass new-style comments for library cores 2018-06-28 14:04:11 -04:00
Joe Bryan
8c0eea3a19 renames +en-host to +join 2018-06-28 14:04:11 -04:00
Joe Bryan
2a83c41f24 removes redundant new-order 2018-06-28 14:04:11 -04:00
Joe Bryan
77391241c7 really make sure account/certificate keys are different 2018-06-28 14:04:11 -04:00
Joe Bryan
b4197152fe parses order responses more minimally 2018-06-28 14:04:10 -04:00
Joe Bryan
9b7c5f9337 insure that account and certificate keys are different
determinism ftw!
2018-06-28 14:04:10 -04:00
Joe Bryan
8567866e89 fixes the nonce retry fix 2018-06-28 14:04:10 -04:00
Joe Bryan
0eae33af9e disables some overly-restrictive json response parsing 2018-06-28 14:04:10 -04:00
Joe Bryan
2bbd8af930 use only one certificate key (for now) 2018-06-28 14:04:10 -04:00
Joe Bryan
2198de77d8 support empty re-registration response, minor cleanup 2018-06-28 14:04:10 -04:00
Joe Bryan
831813c660 fixes badNonce retry, archives old orders when adding a new one 2018-06-28 14:04:10 -04:00
Joe Bryan
671cc1d277 tests challenges locally before notifying ACME server 2018-06-28 14:04:10 -04:00
Joe Bryan
a16dde1476 comment jihad 2018-06-28 14:04:10 -04:00
Joe Bryan
192ebadd87 refactors DER ASN.1 parser 2018-06-28 14:04:10 -04:00
Joe Bryan
2938c19be1 refactors DER en/de-coding out of +asn1 into a separate core 2018-06-28 14:04:10 -04:00
Joe Bryan
3d40edc8d1 refactors JWS, JWK thumbprint, and ACME POST requests 2018-06-28 14:04:10 -04:00
Joe Bryan
5e0a2fcb95 refactors pkcs1, 8, and 10, separating ASN.1 specs from DER encoding
also adds pkcs1 RSA public key en/de-coding and tests
2018-06-28 14:04:10 -04:00
Joe Bryan
39ac62275d removes automatic ~ship.urbit.org order initialization 2018-06-28 14:04:10 -04:00
Joe Bryan
90d2768358 updates rsa-key structure to support public keys 2018-06-28 14:04:10 -04:00