-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PA-6886) Add Digicert to Solaris images
The DigiCertGlobalRootG2 is now used by Artifactory and the VMs we're using for Solaris don't contain that cert by default. We for sure update our images to include that, but until that is done we need to make sure to use it. Also, in our case the OpenSSL used on our Solaris VMs is ancient and doesn't support openssl-rehash, so we have to create the sim link ourself. Once we update our images this commit can be reverted.
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,43 @@ | ||
platform "solaris-11-i386" do |plat| | ||
|
||
# Source: https://www.digicert.com/kb/digicert-root-certificates.htm | ||
# Valid until: 15/Jan/2038 | ||
# Serial #: 03:3A:F1:E6:A7:11:A9:A0:BB:28:64:B1:1D:09:FA:E5 | ||
# SHA256 Fingerprint: CB:3C:CB:B7:60:31:E5:E0:13:8F:8D:D3:9A:23:F9:DE:47:FF:C3:5E:43:C1:14:4C:EA:27:D4:6A:5A:B1:CB:5F | ||
# https://perforce.atlassian.net/browse/RE-16540 for long term fix for this | ||
DigiCertGlobalRootG2 = <<-STRING | ||
-----BEGIN CERTIFICATE----- | ||
MIIDjjCCAnagAwIBAgIQAzrx5qcRqaC7KGSxHQn65TANBgkqhkiG9w0BAQsFADBh | ||
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3 | ||
d3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBH | ||
MjAeFw0xMzA4MDExMjAwMDBaFw0zODAxMTUxMjAwMDBaMGExC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ATE----- | ||
STRING | ||
plat.servicedir "/lib/svc/manifest" | ||
plat.defaultdir "/lib/svc/method" | ||
plat.servicetype "smf" | ||
|
||
plat.vmpooler_template "solaris-11-x86_64" | ||
plat.provision_with "echo '#{DigiCertGlobalRootG2}'>> /etc/openssl/certs/DigiCertGlobalRootG2.pem" | ||
plat.provision_with 'chmod a+r /etc/openssl/certs/DigiCertGlobalRootG2.pem' | ||
plat.provision_with 'ln -s /etc/openssl/certs/DigiCertGlobalRootG2.pem /etc/openssl/certs/607986c7.0' | ||
plat.provision_with '/usr/sbin/svcadm restart /system/ca-certificates' | ||
plat.add_build_repository "http://solaris-11-reposync.delivery.puppetlabs.net:81", "puppetlabs.com" | ||
plat.install_build_dependencies_with "pkg install ", " || [[ $? -eq 4 ]]" | ||
end |