Skip to content

Instantly share code, notes, and snippets.

@nishitpatel
Last active August 1, 2017 06:40
Show Gist options
  • Save nishitpatel/a7b89514e38555af6540875a13d8c45c to your computer and use it in GitHub Desktop.
Save nishitpatel/a7b89514e38555af6540875a13d8c45c to your computer and use it in GitHub Desktop.
Mac Terminal Usefull commands
Show All Files in Mac system
step 1: Open Terminal
step 2: write below commands
$ defaults write com.apple.finder AppleShowAllFiles YES
$ killall Finder
1 - first command will visible all files including hidden files
2 - Close all finder window
3 - Window + ALt + right click on finder -> Relunch
Undo above
$ defaults write com.apple.finder AppleShowAllFiles NO
$ killall Finder
//Convert .p12 file to .pem certificates
//REference link: http://changhoward.blogspot.in/2011/10/how-to-convert-p12-files-to-pem-files.html
#. Convert certificate to pem file format
$ openssl pkcs12 -clcerts -nokeys -out dev-cert.pem -in dev-cert.p12
#. Convert private key to pem file format (password cannot be left blank, so key in 1234 and we will remove it in next step)
$ openssl pkcs12 -nocerts -out dev-key-password.pem -in dev-key.p12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment