Skip to content

Commit

Permalink
align example URLs of ACME server with security recommendations
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEnbyperor committed Jan 14, 2025
1 parent f194f23 commit f71992a
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions draft-ietf-acme-onion.xml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
<sourcecode type="json">
{
"type": "onion-csr-01",
"url": "https://example.com/acme/chall/bbc625c5",
"url": "https://acme-server.example.onion/acme/chall/bbc625c5",
"status": "pending",
"nonce": "bI6/MRqV4gw=",
"authKey": { ... }
Expand Down Expand Up @@ -205,16 +205,16 @@ applicantSigningNonce ATTRIBUTE ::= {
</dd>
</dl>
<sourcecode type="http">
POST example.com/acme/chall/bbc625c5
Host: example.com
POST /acme/chall/bbc625c5
Host: acme-server.example.onion
Content-Type: application/jose+json

{
"protected": base64url({
"alg": "ES256",
"kid": "https://example.com/acme/acct/evOfKhNU60wg",
"kid": "https://acme-server.example.onion/acme/acct/evOfKhNU60wg",
"nonce": "UQI1PoRi5OuXzxuX7V7wL0",
"url": "https://example.com/acme/chall/bbc625c5"
"url": "https://acme-server.example.onion/acme/chall/bbc625c5"
}),
"payload": base64url({
"csr": "MIIBPTCBxAIBADBFMQ...FS6aKdZeGsysoCo4H9P"
Expand Down Expand Up @@ -421,13 +421,13 @@ HTTP/1.1 200 OK
Content-Type: application/json

{
"newNonce": "https://example.com/acme/new-nonce",
"newAccount": "https://example.com/acme/new-account",
"newOrder": "https://example.com/acme/new-order",
"revokeCert": "https://example.com/acme/revoke-cert",
"keyChange": "https://example.com/acme/key-change",
"newNonce": "https://acme-server.example.onion/acme/new-nonce",
"newAccount": "https://acme-server.example.onion/acme/new-account",
"newOrder": "https://acme-server.example.onion/acme/new-order",
"revokeCert": "https://acme-server.example.onion/acme/revoke-cert",
"keyChange": "https://acme-server.example.onion/acme/key-change",
"meta": {
"termsOfService": "https://example.com/acme/terms/2023-10-13",
"termsOfService": "https://acme-server.example.onion/acme/terms/2023-10-13",
"website": "https://acmeforonions.example/",
"caaIdentities": ["acmeforonions.example"],
"inBandOnionCAARequired": true
Expand All @@ -448,15 +448,15 @@ caa 0 iodef "mailto:[email protected]"
(additional linebreaks have been added for readability):</t>
<sourcecode type="http">
POST /acme/order/TOlocE8rfgo/finalize
Host: example.com
Host: acme-server.example.onion
Content-Type: application/jose+json

{
"protected": base64url({
"alg": "ES256",
"kid": "https://example.com/acme/acct/evOfKhNU60wg",
"kid": "https://acme-server.example.onion/acme/acct/evOfKhNU60wg",
"nonce": "MSF2j2nawWHPxxkE3ZJtKQ",
"url": "https://example.com/acme/order/TOlocE8rfgo/finalize"
"url": "https://acme-server.example.onion/acme/order/TOlocE8rfgo/finalize"
}),
"payload": base64url({
"csr": "MIIBPTCBxAIBADBFMQ...FS6aKdZeGsysoCo4H9P",
Expand Down

0 comments on commit f71992a

Please sign in to comment.