From 4d0c6cfb82c16b3ac2ddcc39d5c1b376b8b77f17 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 14 Sep 2023 13:28:57 +0300 Subject: [PATCH] Installing to System.keychain requires root rights. --- .cirrus.yml | 4 ++-- appveyor.yml | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index a13b96aa9..695aece17 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -208,10 +208,10 @@ macos_task_template: &MACOS_TASK_TEMPLATE # Add certificates to keychain and allow codesign to access them # 1) Apple Worldwide Developer Relations Certification Authority - curl https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer --output $HOME/AppleWWDRCAG3.cer --silent - - security import $HOME/AppleWWDRCAG3.cer -k /Library/Keychains/System.keychain -T /usr/bin/codesign + - sudo security import $HOME/AppleWWDRCAG3.cer -k /Library/Keychains/System.keychain -T /usr/bin/codesign # 2) Developer Authentication Certification Authority - curl https://www.apple.com/certificateauthority/DeveloperIDG2CA.cer --output $HOME/DeveloperIDG2CA.cer --silent - - security import $HOME/DeveloperIDG2CA.cer -k /Library/Keychains/System.keychain -T /usr/bin/codesign + - sudo security import $HOME/DeveloperIDG2CA.cer -k /Library/Keychains/System.keychain -T /usr/bin/codesign # 3) Developer ID - security import certificate.p12 -k build.keychain -P "$MACOS_CERTIFICATE_PWD" -T /usr/bin/codesign # Delete the files, we no longer need them diff --git a/appveyor.yml b/appveyor.yml index fa3efa7b9..b973a4137 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -630,10 +630,10 @@ for: # Add certificates to keychain and allow codesign to access them # 1) Apple Worldwide Developer Relations Certification Authority - curl https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer --output $HOME/AppleWWDRCAG3.cer --silent - - security import $HOME/AppleWWDRCAG3.cer -k /Library/Keychains/System.keychain -T /usr/bin/codesign + - sudo security import $HOME/AppleWWDRCAG3.cer -k /Library/Keychains/System.keychain -T /usr/bin/codesign # 2) Developer Authentication Certification Authority - curl https://www.apple.com/certificateauthority/DeveloperIDG2CA.cer --output $HOME/DeveloperIDG2CA.cer --silent - - security import $HOME/DeveloperIDG2CA.cer -k /Library/Keychains/System.keychain -T /usr/bin/codesign + - sudo security import $HOME/DeveloperIDG2CA.cer -k /Library/Keychains/System.keychain -T /usr/bin/codesign # 3) Developer ID - security import certificate.p12 -k build.keychain -P "$MACOS_CERTIFICATE_PWD" -T /usr/bin/codesign # Delete the files, we no longer need them @@ -799,10 +799,10 @@ for: # Add certificates to keychain and allow codesign to access them # 1) Apple Worldwide Developer Relations Certification Authority - curl https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer --output $HOME/AppleWWDRCAG3.cer --silent - - security import $HOME/AppleWWDRCAG3.cer -k build.keychain -T /usr/bin/codesign + - sudo security import $HOME/AppleWWDRCAG3.cer -k /Library/Keychains/System.keychain -T /usr/bin/codesign # 2) Developer Authentication Certification Authority - curl https://www.apple.com/certificateauthority/DeveloperIDG2CA.cer --output $HOME/DeveloperIDG2CA.cer --silent - - security import $HOME/DeveloperIDG2CA.cer -k build.keychain -T /usr/bin/codesign + - sudo security import $HOME/DeveloperIDG2CA.cer -k /Library/Keychains/System.keychain -T /usr/bin/codesign # 3) Developer ID - security import certificate.p12 -k build.keychain -P "$MACOS_CERTIFICATE_PWD" -T /usr/bin/codesign # Delete the files, we no longer need them