Wednesday, January 8, 2020
Using CocoaPods in IOS
After "pod install", open ".xcworkspace" instead of ".xcodeproj". Otherwise, the module could not be imported during compilation.
Wednesday, November 27, 2019
Import SSL certication into Java Keystore
Prerequisite: "*.crt", "*.key" from CA, assume the file names are "cert.crt" and "cert.key"
Steps to be performed in Windows desktop:
Steps to be performed in Windows desktop:
- Rename "cert.crt" to "cert.cer" in Windows
- Double click "cert.cer" and "Ceritificate" popup window should be displayed
- Click "Certification Path" tab
- Double click intermediate certification, eg. "GeoTrust RSA CA 2018", another "Certificate" popup window should be displayed
- Click "Details" tab
- Click "Copy to File..." button and save the content as "intermediate.cer"
- Click "Certification Path" tab again"
- Double click root certification, eg. "DigiCert", another "Certificate" popup window should be displayed
- Click "Details" tab
- Click "Copy to File..." button and save the content as "root.cer"
- Concatenate "intermediate.cer" and "root.cer" into "allca.cer", eg. with command "cat intermediate.cer root.cer > allca.cer"
- Execute command "openssl pkcs12 -export -in cert.crt -inkey cert.key -out cert.p12 -name {aliasname} -CAfile allca.cer -caname root -chain"
- Append "$JAVA_HOME/bin" to "PATH" of cygwin, eg. "export PATH=$PATH:$JAVA_HOME/bin"
- Execute command "keytool -importkeystore -deststorepass {password} -destkeystore cert.jks -srckeystore cert.p12 -srcstoretype PKCS12 -srcstorepass {password} -alias {aliasname}"
To verify, use command "keytool -list -v -keystore cert.jks -storepass {password}".
Saturday, August 10, 2019
Thursday, August 8, 2019
Terms to be checked after Python article reading
Regarding "Python is eating the world: How one developer's side project became the hottest programming language on the planet":
Global Interpreter Lock
https://realpython.com/python-gil/
Global Interpreter Lock
https://realpython.com/python-gil/
Thursday, July 18, 2019
Tuesday, July 2, 2019
To avoid overlapping during typing, add following lines into .bashrc
PS1='\[\e[32m\]\u@\h:\W> \[\e[0m\]'
TERM=cygwin
export PS1
export TERM
TERM=cygwin
export PS1
export TERM
Install sshpass for cygwin
$ curl -LO http://downloads.sourceforge.net/sshpass/sshpass-1.06.tar.gz
$ md5sum sshpass-1.06.tar.gz
$ tar xvf sshpass-1.06.tar.gz
$ cd sshpass-1.06
$ ./configure
$ make
$ make install
$ md5sum sshpass-1.06.tar.gz
$ tar xvf sshpass-1.06.tar.gz
$ cd sshpass-1.06
$ ./configure
$ make
$ make install
Subscribe to:
Posts (Atom)