Commit Graph

8186 Commits

Author SHA1 Message Date
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
Joe Bryan
09d61ca3d7 finishes basic ACMEv2 flow, refactors multiple event queuing 2018-06-28 14:04:10 -04:00
Joe Bryan
854f9aace4 adds detailed state structures, parsers, control flow to :acme 2018-06-28 14:04:10 -04:00
Joe Bryan
55b33d8578 random cleanup 2018-06-28 14:04:10 -04:00
Joe Bryan
e96d0e77d5 adds pkcs10 encoding for Certificate Signing Requests 2018-06-28 14:04:10 -04:00
Joe Bryan
e4014ca385 adds pkcs8 encoding for RSA public keys 2018-06-28 14:04:10 -04:00
Joe Bryan
37d5c6edbb adds auras to +spec:asn1 2018-06-28 14:04:10 -04:00
Joe Bryan
f2fe13bf73 implements jwk en/de-coding for RSA private keys, fixes JWS tests (and jws-body) 2018-06-28 14:04:10 -04:00
Joe Bryan
d952b368cb tests for pkcs1 version number in DER decoding 2018-06-28 14:04:10 -04:00
Joe Bryan
d8d1f36eaa refactors +jwk, corrects decoding, implements encoding 2018-06-28 14:04:10 -04:00