Git Product home page Git Product logo

codesigningnotes's Introduction

CodeSigningNotes

Articles / Overview

Notes on Code Signing (Certs, Keys, etc.)

Xcode Provisioning Profiles Location

~/Library/MobileDevice/Provisioning Profiles

Code Resigning

How to resign ipa files.

Quick Look for Provisioning Profiles

https://github.com/chockenberry/Provisioning

Shell script #Opens file in Xcode RANDOMFILENAME=/tmp/provision_$RANDOM.plist openssl smime -in "$1" -inform DER -verify > $RANDOMFILENAME open $RANDOMFILENAME

source: 360idev-jay-graves-provisioning-profiles-like-a-pro

Public Key

  • Show public key fingerprint

    ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub

PEM file

The name comes from Privacy Enchanced Email. It can contain several certificates and even the private key.

Privacy-enchanced Electronic Mail - Wikipedia Link

X.509

Wikipedia Link

CSR - Certificate Signing Request

p12 file

  • Get information about a p12 file

    keytool -list -v -keystore mykeystore.p12 -storetype PKCS12 -storepass 123456

    openssl pkcs12 -in <my pkcs12 file>.p12 -nodes -passin pass:<passphrase, or blank> |openssl x509 -noout -fingerprint

  • Get private key from p12

    openssl pkcs12 -in yourP12File.p12 -nocerts -out privateKey.pem

  • Get certificate from p12

    openssl pkcs12 -in yourP12File.p12 -clcerts -nokeys -out publicCert.pem

Using keytool to dump information about a p12 with CertAndKey

`keytool -list -v -storetype pkcs12 -keystore <keyStore.p12>`

HowTo...

Importing Keys

  • Import public/private keys into Mac OS X Keychain (don't just double click them!)

    security import priv_key.p12 -k ~/Library/Keychains/login.keychain

    security import pub_key.pem -k ~/Library/Keychains/login.keychain

Verifying SHA

  • Verify a SHA-1 digest on OS X

    openssl sha1 <file>

Apple source

Automator action for viewing Provisioning Profile information

Automator Service Screenshot

Resources

codesigningnotes's People

Contributors

marknorgren avatar mrkd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.