Skip to content

Commit 6b8bf1b

Browse files
committed
fix pkcs example
1 parent f27da0b commit 6b8bf1b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ func main() {
123123
// Context: cctx,
124124
// PkcsId: nil, //softhsm
125125
// PkcsLabel: []byte("keylabel1"), //softhsm
126-
// PublicCertFile: "client.crt", //softhsm
127126
// })
128127

129128

example/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ require (
2525
github.com/googleapis/gax-go/v2 v2.12.3 // indirect
2626
github.com/miekg/pkcs11 v1.0.3-0.20190429190417-a667d056470f // indirect
2727
github.com/pkg/errors v0.8.1 // indirect
28-
github.com/salrashid123/mtls_pkcs11/signer/pkcs v0.0.0-20240409112057-e6fd3b9f0945 // indirect
28+
github.com/salrashid123/mtls_pkcs11/signer/pkcs v0.0.0-20240509233410-a73ce04a2b72 // indirect
2929
github.com/thales-e-security/pool v0.0.2 // indirect
3030
go.opencensus.io v0.24.0 // indirect
3131
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect

example/go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
7474
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
7575
github.com/salrashid123/mtls_pkcs11/signer/pkcs v0.0.0-20240409112057-e6fd3b9f0945 h1:yowMf/xR/oeR642HGc1u1KmmXnWLk7C7qDs5niAFWoQ=
7676
github.com/salrashid123/mtls_pkcs11/signer/pkcs v0.0.0-20240409112057-e6fd3b9f0945/go.mod h1:NbwMTv56G4w5oGGAfT5faUTaHbEQOIcFyG9957710FI=
77+
github.com/salrashid123/mtls_pkcs11/signer/pkcs v0.0.0-20240509233410-a73ce04a2b72 h1:8RgerftuPvGEYnpAp5co/iajwpOQ+d+iD3di6jmDzco=
78+
github.com/salrashid123/mtls_pkcs11/signer/pkcs v0.0.0-20240509233410-a73ce04a2b72/go.mod h1:NbwMTv56G4w5oGGAfT5faUTaHbEQOIcFyG9957710FI=
7779
github.com/salrashid123/signer/kms v0.0.0-20240506142117-142e7dba6e3a h1:cK9mCrWgCaoM+CJ74bpZcedhEiw6RERhW6JU898OYv8=
7880
github.com/salrashid123/signer/kms v0.0.0-20240506142117-142e7dba6e3a/go.mod h1:v4n0rkyQNOMMOYqIpqN1WjRBTY1/zrArKOeen8dkYZ8=
7981
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=

example/rsa/main.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,9 @@ func main() {
120120
// defer cctx.Close()
121121

122122
// r, err := salpkcs.NewPKCSCrypto(&salpkcs.PKCS{
123-
// Context: cctx,
124-
// PkcsId: nil, //softhsm
125-
// PkcsLabel: []byte("keylabel1"), //softhsm
126-
// PublicCertFile: "client.crt", //softhsm, if the hsm device does not include a cert, specify it here
123+
// Context: cctx,
124+
// PkcsId: nil, //softhsm
125+
// PkcsLabel: []byte("keylabel1"), //softhsm
127126
// })
128127

129128
// if err != nil {

0 commit comments

Comments
 (0)