[139137] branches/gsoc15-pallet/gen_cert.sh

ksammons at macports.org ksammons at macports.org
Mon Aug 3 12:18:49 PDT 2015


Revision: 139137
          https://trac.macports.org/changeset/139137
Author:   ksammons at macports.org
Date:     2015-08-03 12:18:49 -0700 (Mon, 03 Aug 2015)
Log Message:
-----------
Pallet Branch: Added Michael's fixes to gen_cert.sh

Modified Paths:
--------------
    branches/gsoc15-pallet/gen_cert.sh

Modified: branches/gsoc15-pallet/gen_cert.sh
===================================================================
--- branches/gsoc15-pallet/gen_cert.sh	2015-08-03 18:53:29 UTC (rev 139136)
+++ branches/gsoc15-pallet/gen_cert.sh	2015-08-03 19:18:49 UTC (rev 139137)
@@ -61,15 +61,13 @@
     if [ ! -f ./certs/apple.p12 ]; then
 
         echo "Certificate, \"./certs/apple.p12\" does not exist. Creating."
-        openssl pkcs12 -export -inkey ./certs/apple.key -in ./certs/apple.crt -out ./certs/apple.p12
+        echo test | openssl pkcs12 -export -password test -inkey ./certs/apple.key -in ./certs/apple.crt -out ./certs/apple.p12 -password stdin
     else
         echo "Certificate, \"./certs/apple.p12\" already exists. Skipping creation."
     fi
 
     # Import the the newly created P12 certificate into the login (default) keychain.
     echo "Importing the certificate into the keychain."
-    read -s -p "Enter your root password: " password
-    security unlock-keychain -p $password login.keychain
+    security unlock-keychain -u login.keychain
     security import ./certs/apple.p12 -k login.keychain -P test
-    security lock-keychain login.keychain 
 fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150803/c1f09e99/attachment.html>


More information about the macports-changes mailing list