File tree Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Expand file tree Collapse file tree 4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -373,8 +373,7 @@ type BootstrapTokenDiscovery struct {
373
373
// pinning, which can be unsafe. Each hash is specified as "<type>:<value>",
374
374
// where the only currently supported type is "sha256". This is a hex-encoded
375
375
// SHA-256 hash of the Subject Public Key Info (SPKI) object in DER-encoded
376
- // ASN.1. These hashes can be calculated using, for example, OpenSSL:
377
- // openssl x509 -pubkey -in ca.crt openssl rsa -pubin -outform der 2>&/dev/null | openssl dgst -sha256 -hex
376
+ // ASN.1. These hashes can be calculated using, for example, OpenSSL.
378
377
CACertHashes []string
379
378
380
379
// UnsafeSkipCAVerification allows token-based discovery
Original file line number Diff line number Diff line change @@ -362,8 +362,7 @@ type BootstrapTokenDiscovery struct {
362
362
// pinning, which can be unsafe. Each hash is specified as "<type>:<value>",
363
363
// where the only currently supported type is "sha256". This is a hex-encoded
364
364
// SHA-256 hash of the Subject Public Key Info (SPKI) object in DER-encoded
365
- // ASN.1. These hashes can be calculated using, for example, OpenSSL:
366
- // openssl x509 -pubkey -in ca.crt openssl rsa -pubin -outform der 2>&/dev/null | openssl dgst -sha256 -hex
365
+ // ASN.1. These hashes can be calculated using, for example, OpenSSL.
367
366
CACertHashes []string `json:"caCertHashes,omitempty"`
368
367
369
368
// UnsafeSkipCAVerification allows token-based discovery
Original file line number Diff line number Diff line change @@ -364,8 +364,7 @@ type BootstrapTokenDiscovery struct {
364
364
// pinning, which can be unsafe. Each hash is specified as "<type>:<value>",
365
365
// where the only currently supported type is "sha256". This is a hex-encoded
366
366
// SHA-256 hash of the Subject Public Key Info (SPKI) object in DER-encoded
367
- // ASN.1. These hashes can be calculated using, for example, OpenSSL:
368
- // openssl x509 -pubkey -in ca.crt openssl rsa -pubin -outform der 2>&/dev/null | openssl dgst -sha256 -hex
367
+ // ASN.1. These hashes can be calculated using, for example, OpenSSL.
369
368
CACertHashes []string `json:"caCertHashes,omitempty"`
370
369
371
370
// UnsafeSkipCAVerification allows token-based discovery
Original file line number Diff line number Diff line change @@ -47,8 +47,7 @@ c1vuFqTnJBPcb7W//R/GI2Paicm1cmns9NLnPR35exHxFTy+D1yxmGokpoPMdife
47
47
aH+sfuxT8xeTPb3kjzF9eJTlnEquUDLM
48
48
-----END CERTIFICATE-----`
49
49
50
- // expectedHash can be verified using the openssl CLI:
51
- // openssl x509 -pubkey -in test.crt openssl rsa -pubin -outform der 2>&/dev/null | openssl dgst -sha256 -hex
50
+ // expectedHash can be verified using the openssl CLI.
52
51
const expectedHash = `sha256:345959acb2c3b2feb87d281961c893f62a314207ef02599f1cc4a5fb255480b3`
53
52
54
53
// testCert2PEM is a second test cert generated the same way as testCertPEM
You can’t perform that action at this time.
0 commit comments