Skip to content

Commit

Permalink
feat: bundle Certum cert
Browse files Browse the repository at this point in the history
Closes #398
  • Loading branch information
develar committed May 14, 2016
1 parent a5a23ae commit 2e0894f
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 71 deletions.
4 changes: 3 additions & 1 deletion .idea/runConfigurations/CodeSignTest.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

97 changes: 97 additions & 0 deletions certs/bundle.crt
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
-----BEGIN CERTIFICATE-----
MIIF2DCCA8CgAwIBAgIQbDvSft08lJ6Vjiips8dXoDANBgkqhkiG9w0BAQsFADB9
MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRkLjErMCkGA1UECxMi
U2VjdXJlIERpZ2l0YWwgQ2VydGlmaWNhdGUgU2lnbmluZzEpMCcGA1UEAxMgU3Rh
cnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMTUxMjE2MDEwMDA1WhcN
MzAxMjE2MDEwMDA1WjB1MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20g
THRkLjEpMCcGA1UECxMgU3RhcnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkx
IzAhBgNVBAMTGlN0YXJ0Q29tIENsYXNzIDIgT2JqZWN0IENBMIIBIjANBgkqhkiG
9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuRQEWPeyxYYsCDJgrQgmwIF3uWgZ2RUrHRhp
5NoalgWXLmR5Gqk9UTNa0Hdq9AKTQcOOunAbq9h7dG+Y6Ne5qT5odqSJoCKsF9Yp
+Lu4YZ/SB9BmDjBHICtwAh7+cwkccTS14n6prKin8Y46QAZ2ksr3eGzvWAVzfX+D
UOmiVQLjAK6Wp8bCZHvj+FhAlS5Ne7/dggDeSVWnMyPm2k/5YKOTVXExJJaAlYkm
yH1OiC3soTkkGb6aJjGJPHiaiNJ4pjkySX5l2p4DQ7K1/J6ft5Vw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Af8wHQYDVR0OBBYEFMB7tMi3
blanCUia+HJP19ckLDY+MB8GA1UdIwQYMBaAFAh2zcsH/yT2xc3tu5C84oQ3RnX3
MA4GA1UdDwEB/wQEAwIBBjATBgNVHSUEDDAKBggrBgEFBQcDAzAvBgNVHR8EKDAm
MCSgIqAghh5odHRwOi8vY3JsLmNlcnR1bS5wbC9jdG5jYS5jcmwwawYIKwYBBQUH
AQEEXzBdMCgGCCsGAQUFBzABhhxodHRwOi8vc3ViY2Eub2NzcC1jZXJ0dW0uY29t
MDEGCCsGAQUFBzAChiVodHRwOi8vcmVwb3NpdG9yeS5jZXJ0dW0ucGwvY3RuY2Eu
Y2VyMDkGA1UdIAQyMDAwLgYEVR0gADAmMCQGCCsGAQUFBwIBFhhodHRwOi8vd3d3
LmNlcnR1bS5wbC9DUFMwDQYJKoZIhvcNAQELBQADggEBAKrlP3ZUAkxwDimpOZYG
DzG3C/Gmi1L7EI9PQluMvTEjAWad6CmhTcNQ+vf4RQ4dgtf8/qYyBHP9cezMiA+j
kgjFgVgC/QtpO824P0k90I0cExRoLpsNmq2wGeKe0nw5d4hvI/17hPxEbbW6a3CS
VWyUsdg3/alZHbRjstwTzXiOJTXBmo83hC7URczj9cyNc6jjOm3nlZRwV5FQtm3v
c3JPLwKHYOLqIqHtPv3Ri2aNLnJtT8ZdNe6TqJjSZ2rp2hnNAoP5dPxfehgEKB7d
IjM7dmxHBV3VUv4OunbzgxDHbjBfp2DH+nQnMZsog+0hihvxI1KE7ZW8rTqlo0IB
nbw=
-----END CERTIFICATE-----
5 changes: 5 additions & 0 deletions certs/create.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
> bundle.crt
curl https://www.startssl.com/certs/sca.code2.crt >> bundle.crt
curl https://www.startssl.com/certs/sca.code3.crt >> bundle.crt

curl https://repository.certum.pl/cscasha2.pem >> bundle.crt
34 changes: 0 additions & 34 deletions certs/sca.code2.crt

This file was deleted.

34 changes: 0 additions & 34 deletions certs/sca.code3.crt

This file was deleted.

3 changes: 1 addition & 2 deletions src/codeSign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ async function importCerts(keychainName: string, paths: Array<string>, keyPasswo
const bundledCertsPath = path.join(__dirname, "..", "certs")
certFiles.push(
path.join(bundledCertsPath, "AppleWWDRCA.cer"),
path.join(bundledCertsPath, "sca.code2.crt"),
path.join(bundledCertsPath, "sca.code3.crt")
path.join(bundledCertsPath, "bundle.crt")
)
}

Expand Down

0 comments on commit 2e0894f

Please sign in to comment.