Goal is to download and convert certificate of a server, example.com
openssl s_client -showcerts -connect example.com:443 -servername example.com </dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > example.com.pem
I will do some optional preparation, download OS and flash OS to memory SD card. Just for fun, I will try to do much as possible from the command line.
We want HomeBrew as is helps us with installing many items using CLI
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
check Python version first
ls -ld /Applications/Python*
output might be something like:
drwxr-xr-x@ 10 root wheel 320 Oct 27 2017 /Applications/Python 3.6
drwxr-xr-x@ 10 root wheel 320 Nov 7 06:46 /Applications/Python 3.7
run command with version (latest) to use
screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty
WARN [plugin]: Error during loading "karma-phantomjs-launcher" plugin:
Path must be a string. Received null
...
WARN [launcher]: Can not load "PhantomJS", it is not registered!
Perhaps you are missing some plugin?
I have installed in node_modules the following:
| umake ide idea-ultimate |
I am using virtualenv, but noticed that python 2.7 gave an error on pyopenssl outside virtualenv. My company uses an intermediate ssl certificate. My solution of the ssl error was to add that certificate to all pip.conf, outside and inside virtualenv.
File "/usr/local/lib/python2.7/site-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import rand, crypto, SSL
File "/usr/local/lib/python2.7/site-packages/OpenSSL/SSL.py", line 118, in <module>
SSL_ST_INIT = _lib.SSL_ST_INIT
AttributeError: 'module' object has no attribute 'SSL_ST_INIT'