Skip to content

Commit

Permalink
README: Use https URLs for API testing (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalBrains1 committed Jan 11, 2021
1 parent 035a219 commit d573f77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ You may want to test that acme-dns is working before using it for real queries.

2) Call the `/register` API endpoint to register a test domain:
```
$ curl -X POST http:https://auth.example.org/register
$ curl -X POST https:https://auth.example.org/register
{"username":"eabcdb41-d89f-4580-826f-3e62e9755ef2","password":"pbAXVjlIOE01xbut7YnAbkhMQIkcwoHO0ek2j4Q0","fulldomain":"d420c923-bbd7-4056-ab64-c3ca54c9b3cf.auth.example.org","subdomain":"d420c923-bbd7-4056-ab64-c3ca54c9b3cf","allowfrom":[]}
```

Expand All @@ -216,7 +216,7 @@ $ curl -X POST \
-H "X-Api-User: eabcdb41-d89f-4580-826f-3e62e9755ef2" \
-H "X-Api-Key: pbAXVjlIOE01xbut7YnAbkhMQIkcwoHO0ek2j4Q0" \
-d '{"subdomain": "d420c923-bbd7-4056-ab64-c3ca54c9b3cf", "txt": "___validation_token_received_from_the_ca___"}' \
http:https://auth.example.org/update
https:https://auth.example.org/update
```

Note: The `txt` field must be exactly 43 characters long, otherwise acme-dns will reject it
Expand Down

0 comments on commit d573f77

Please sign in to comment.