Skip to content

Instantly share code, notes, and snippets.

View hjuutilainen's full-sized avatar

Hannes Juutilainen hjuutilainen

View GitHub Profile

Keybase proof

I hereby claim:

  • I am hjuutilainen on github.
  • I am hjuutilainen (https://keybase.io/hjuutilainen) on keybase.
  • I have a public key whose fingerprint is 0F9D 9FD1 7EE7 66EC 1E82 30BD FE1A 9912 73ED 3274

To claim this, I am signing this object:

@hjuutilainen
hjuutilainen / gist:dcae7285a2a9419be2f7
Created September 11, 2015 12:06
Testing Firefox code signatures with AutoPkg
$ for RELEASE in "latest" "latest-esr" "latest-beta"; do for LOCALE in "en-US" "de" "ja-JP-mac" "sv-SE" "zh-TW"; do autopkg run -k RELEASE=${RELEASE} -k LOCALE=${LOCALE} -v Firefox.download.recipe; done; done
Processing Firefox.download.recipe...
MozillaURLProvider
MozillaURLProvider: Found URL http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/latest/mac/en-US/Firefox%2040.0.3.dmg
URLDownloader
URLDownloader: Storing new Last-Modified header: Wed, 26 Aug 2015 11:29:58 GMT
URLDownloader: Storing new ETag header: "4b577a1-49cfddb-51e352ba6d229"
URLDownloader: Downloaded /autopkgcache/com.github.autopkg.download.firefox-rc-en_US/downloads/Firefox.dmg
@hjuutilainen
hjuutilainen / extractIdentityAndTrustTests
Created June 11, 2014 19:48
SecPKCS12Import fiddling
OSStatus extractIdentityAndTrust(CFDataRef inP12data, SecIdentityRef *identity, SecTrustRef *trust)
{
OSStatus securityError = errSecSuccess;
CFStringRef password = CFSTR("ThePassword");
const void *keys[] = { kSecImportExportPassphrase };
const void *values[] = { password };
CFDictionaryRef options = CFDictionaryCreate(NULL, keys, values, 1, NULL, NULL);
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.example.testing</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/testing.sh</string>
</array>
@hjuutilainen
hjuutilainen / Fantastical log messages
Created November 19, 2013 11:47
Log messages by Fantastical (OS X)
19.11.2013 13.41.32,403 secd[540]: securityd_xpc_dictionary_handler Fantastical[1799] copy_matching The operation couldn’t be completed. (OSStatus error -34018 - client has neither application-identifier nor keychain-access-groups entitlements)
19.11.2013 13.41.32,403 Fantastical[1799]: SecOSStatusWith error:[-34018] The operation couldn’t be completed. (OSStatus error -34018 - Remote error : The operation couldn‚Äôt be completed. (OSStatus error -34018 - client has neither application-identifier nor keychain-access-groups entitlements))
19.11.2013 13.41.32,406 secd[540]: securityd_xpc_dictionary_handler Fantastical[1799] copy_matching The operation couldn’t be completed. (OSStatus error -34018 - client has neither application-identifier nor keychain-access-groups entitlements)
19.11.2013 13.41.32,406 Fantastical[1799]: SecOSStatusWith error:[-34018] The operation couldn’t be completed. (OSStatus error -34018 - Remote error : The operation couldn‚Äôt be completed. (OSStatus error -34018 - client has neith
@hjuutilainen
hjuutilainen / AnyConnect-3.1.04063.plist
Created September 13, 2013 17:10
Munki pkginfo for Cisco AnyConnect. Some not-so-interesting keys removed...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>display_name</key>
<string>Cisco AnyConnect Secure Mobility Client</string>
<key>installer_choices_xml</key>
<array>
<dict>
<key>attributeSetting</key>
@hjuutilainen
hjuutilainen / Xcode-MobileDevice-4.5.2.plist
Created November 8, 2012 12:14
pkginfo file for MobileDevice.pkg, Xcode 4.5.2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>testing</string>
</array>
@hjuutilainen
hjuutilainen / Xcode-MobileDeviceDevelopment-4.5.2.plist
Created November 8, 2012 12:12
pkginfo file for MobileDeviceDevelopment.pkg, Xcode 4.5.2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>testing</string>
</array>
*.pbxproj -crlf -diff -merge