Skip to content

Commit

Permalink
Updating 10.11 firstboot script with defaults command to increase max…
Browse files Browse the repository at this point in the history
…imum TLS certificate size

Updating 10.11 firstboot script with defaults command to increase
maximum TLS certificate size. I've also renamed boolean flags to make
them more consistent, with all true conditions being labeled "true" and
all false conditions being labeled "false", instead of the previous mix
of TRUE, FALSE, and NO.
  • Loading branch information
rtrouton committed Aug 12, 2015
1 parent 962067f commit ef12a08
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions rtrouton_scripts/first_boot/10.11/first_boot.sh
Expand Up @@ -2,7 +2,7 @@

# Initial setup script for Mac OS X 10.11.x
# Rich Trouton, created July 29, 2015
# Last modified 8-3-2015
# Last modified 8-12-2015
#
# Adapted from Initial setup script for Mac OS X 10.10.x
# Rich Trouton, created August 20, 2014
Expand Down Expand Up @@ -183,7 +183,7 @@ if [[ ${osvers} -ge 7 ]]; then

for USER_TEMPLATE in "/System/Library/User Template"/*
do
/usr/bin/defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant DidSeeCloudSetup -bool TRUE
/usr/bin/defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant DidSeeCloudSetup -bool true
/usr/bin/defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant GestureMovieSeen none
/usr/bin/defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant LastSeenCloudProductVersion "${sw_vers}"
/usr/bin/defaults write "${USER_TEMPLATE}"/Library/Preferences/com.apple.SetupAssistant LastSeenBuddyBuildVersion "${sw_build}"
Expand All @@ -209,7 +209,7 @@ if [[ ${osvers} -ge 7 ]]; then
fi
if [ -d "${USER_HOME}"/Library/Preferences ]
then
/usr/bin/defaults write "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant DidSeeCloudSetup -bool TRUE
/usr/bin/defaults write "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant DidSeeCloudSetup -bool true
/usr/bin/defaults write "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant GestureMovieSeen none
/usr/bin/defaults write "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant LastSeenCloudProductVersion "${sw_vers}"
/usr/bin/defaults write "${USER_HOME}"/Library/Preferences/com.apple.SetupAssistant LastSeenBuddyBuildVersion "${sw_build}"
Expand Down Expand Up @@ -275,7 +275,16 @@ spctl --master-disable
# will reactivate every 30 days. When it reactivates, it
# will be be set to "Mac App Store and identified developers"

/usr/bin/defaults write /Library/Preferences/com.apple.security GKAutoRearm -bool NO
/usr/bin/defaults write /Library/Preferences/com.apple.security GKAutoRearm -bool false

# Set the RSA maximum key size to 32768 bits (32 kilobits) in
# /Library/Preferences/com.apple.security.plist to provide
# future-proofing against larger TLS certificate key sizes.
#
# For more information about this issue, please see the link below:
# http://blog.shiz.me/post/67305143330/8192-bit-rsa-keys-in-os-x

/usr/bin/defaults write /Library/Preferences/com.apple.security RSAMaxKeySize -int 32768

# Remove setup LaunchDaemon item

Expand Down

0 comments on commit ef12a08

Please sign in to comment.