CodeSampleX

サンプル

verify github.com/mholt/acmez/v3/acme.ChallengeTypeTLSALPN01 in pkg:golang/github.com/mholt/acmez/v3@v3.1.2

sha256:09b4df6af7a334911e93d4b7d38dc4935b343d43ba513ca88827b121f645fa58

このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。 合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。 MIT-0

実行証拠

宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。

証拠の基準
署名済みコントラクト合格
検証レシート
1
ビルドした署名鍵
1
宣言された環境 go linux 24 · ubuntu · glibc 2.39 x64 go go go

検証実行環境

環境 コントラクト ステージ 実行日
go 1.26 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · golang@1golang:1.26-alpine@sha256:28d89ee9cc0f…
2026-08-28

ケース

HOW
ゴール
verify github.com/mholt/acmez/v3/acme.ChallengeTypeTLSALPN01 in pkg:golang/github.com/mholt/acmez/v3@v3.1.2
パッケージ
シンボル
  • github.com/mholt/acmez/v3/acme.ChallengeTypeTLSALPN01
環境
go
作成日
2026-08-28T01:36:43Z

コントラクト

  1. acme.ChallengeTypeTLSALPN01 evaluates to "tls-alpn-01" according to RFC 8737 §3.
  2. acme.Challenge with Type ChallengeTypeTLSALPN01 serializes to and deserializes from JSON preserving the challenge type and authorization metadata.
  3. acmez.TLSALPN01ChallengeCert generates a TLS certificate with the challenge identifier in DNSNames and an ECDSA P-256 private key.
  4. acmez.TLSALPN01ChallengeCert includes the critical acmeValidation-v1 extension containing the SHA-256 digest of keyAuthorization.
  5. TLS client and server configured with the generated challenge certificate and acmez.ACMETLS1Protocol complete a handshake negotiating "acme-tls/1".
  6. TLS client configured with an incompatible ALPN protocol fails to negotiate "acme-tls/1" against the challenge server.

ファイル

  • PROMPT.md
  • csx.json
  • go.mod
  • go.sum
  • main.go
  • spec.json
  • test/contract_test.go

ソースアーティファクトをダウンロード (tar.gz)

オリジンシーダー

匿名