Skip to content

Commit

Permalink
fix 'go vet -tags e2e ./...' (sigstore#3550)
Browse files Browse the repository at this point in the history
* fix 'go vet -tags e2e ./...'

Signed-off-by: Dmitry S <dsavints@gmail.com>

* fix typo in 'concatenating'

Signed-off-by: Dmitry S <dsavints@gmail.com>

---------

Signed-off-by: Dmitry S <dsavints@gmail.com>
Signed-off-by: Noah Kreiger <noahkreiger@gmail.com>
  • Loading branch information
dmitris authored and nkreiger committed Mar 2, 2024
1 parent 5b82804 commit ff4b942
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2883,7 +2883,7 @@ func setLocalEnv(t *testing.T, dir string) error {
// fulcio repo is downloaded to the user's home directory by e2e_test.sh
home, err := os.UserHomeDir()
if err != nil {
fmt.Errorf("error getting home directory: %w", err)
return fmt.Errorf("error getting home directory: %w", err)
}
t.Setenv(env.VariableSigstoreCTLogPublicKeyFile.String(), path.Join(home, "fulcio/config/ctfe/pubkey.pem"))
err = downloadAndSetEnv(t, fulcioURL+"/api/v1/rootCert", env.VariableSigstoreRootFile.String(), dir)
Expand Down
4 changes: 2 additions & 2 deletions test/testdata/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ $ openssl req -new -key leafCA.key -out leafCA.csr
$ openssl x509 -req -in leafCA.csr -CA intermediateCA.crt -CAkey intermediateCA.key -CAcreateserial -CAserial leafca.srl -out leafCA.crt -days 1825 -sha256 -extfile leafConfigFile
```

11. Generate Certificate chain by concatinating Intermediate certificate and Root certificate
11. Generate Certificate chain by concatenating Intermediate certificate and Root certificate

```shell
$ cat intermediateCA.crt rootCA.crt > certChain.crt
Expand Down Expand Up @@ -172,7 +172,7 @@ $ openssl req -new -key secondleafCA.key -out secondleafCA.csr
$ openssl x509 -req -in secondleafCA.csr -CA secondintermediateCA.crt -CAkey secondintermediateCA.key -CAcreateserial -CAserial secondleafca.srl -out secondleafCA.crt -days 1825 -sha256 -extfile leafConfigFile
```

26. Generate Certificate chain by concatinating second Intermediate certificate and second Root certificate
26. Generate Certificate chain by concatenating second Intermediate certificate and second Root certificate

```shell
$ cat secondintermediateCA.crt secondrootCA.crt > secondcertChain.crt
Expand Down

0 comments on commit ff4b942

Please sign in to comment.