Skip to content

Commit 6baed51

Browse files
authored
Merge pull request #9 from edouard-claude/master
Replace fullsailor/pkcs7 with go.mozilla.org/pkcs7 to fix "Signature must contain a signing date" issue
2 parents c92621b + d510cfc commit 6baed51

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/alvinbaena/passkit
33
go 1.17
44

55
require (
6-
github.com/fullsailor/pkcs7 v0.0.0-20190404230743-d7302db945fa
6+
go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352
77
golang.org/x/crypto v0.0.0-20220924013350-4ba4fb4dd9e7
88
gopkg.in/go-playground/colors.v1 v1.2.0
99
)

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
github.com/fullsailor/pkcs7 v0.0.0-20190404230743-d7302db945fa h1:RDBNVkRviHZtvDvId8XSGPu3rmpmSe+wKRcEWNgsfWU=
2-
github.com/fullsailor/pkcs7 v0.0.0-20190404230743-d7302db945fa/go.mod h1:KnogPXtdwXqoenmZCw6S+25EAm2MkxbG0deNDu4cbSA=
1+
go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352 h1:CCriYyAfq1Br1aIYettdHZTy8mBTIPo7We18TuO/bak=
2+
go.mozilla.org/pkcs7 v0.0.0-20210826202110-33d05740a352/go.mod h1:SNgMg+EgDFwmvSmLRTNKC5fegJjB7v23qTQ0XLGUNHk=
33
golang.org/x/crypto v0.0.0-20220924013350-4ba4fb4dd9e7 h1:WJywXQVIb56P2kAvXeMGTIgQ1ZHQxR60+F9dLsodECc=
44
golang.org/x/crypto v0.0.0-20220924013350-4ba4fb4dd9e7/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
55
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=

signing.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import (
44
"crypto/x509"
55
"errors"
66
"fmt"
7-
"github.com/fullsailor/pkcs7"
8-
"golang.org/x/crypto/pkcs12"
97
"os"
8+
9+
"go.mozilla.org/pkcs7"
10+
"golang.org/x/crypto/pkcs12"
1011
)
1112

1213
const (
@@ -105,6 +106,7 @@ func signManifestFile(manifestJson []byte, i *SigningInformation) ([]byte, error
105106
}
106107

107108
s.AddCertificate(i.appleWWDRCACert)
109+
108110
err = s.AddSigner(i.signingCert, i.privateKey, pkcs7.SignerInfoConfig{})
109111
if err != nil {
110112
return nil, err

0 commit comments

Comments
 (0)