Skip to content

Commit 18ca0d5

Browse files
authored
Merge pull request #381 from ldez/fix/lego
fix: update lego example
2 parents 265db35 + 2740130 commit 18ca0d5

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

tutorials/acme-protocol-acme-clients.mdx

+4-7
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,9 @@ Hello, mike@smallstep.com`}
415415

416416
### Golang
417417

418-
[lego][] is an ACME client library written in Go.
418+
[lego][] is an ACME client CLI and library written in Go.
419419
You can use it to obtain a certificate from `step-ca` programmatically.
420-
You can find an example of this code here: [https://gist.github.com/mmalone/abce3c30df96972ed47f3298543be345](https://gist.github.com/mmalone/abce3c30df96972ed47f3298543be345)
420+
You can find an example of this code here: [https://gist.github.com/ldez/e975a1026b704e55f1d1f85143b377b7](https://gist.github.com/ldez/e975a1026b704e55f1d1f85143b377b7)
421421

422422
[lego]: https://github.com/go-acme/lego
423423

@@ -430,12 +430,9 @@ Fetch the required dependencies and start the server:
430430

431431
<CodeBlock
432432
language="shell-session"
433-
copyText="go get golang.org/x/net/http2 && go get github.com/go-acme/lego && go run acme.go"
433+
copyText="go run acme.go"
434434
>
435-
{`$ go get golang.org/x/net/http2
436-
$ go get github.com/go-acme/lego
437-
$ go run acme.go
438-
`}
435+
{`$ go run acme.go`}
439436
</CodeBlock>
440437

441438
Then test with curl:

0 commit comments

Comments
 (0)