https://mlwmlw.org/2015/07/%E6%B7%B1%E5%85%A5%E6%B7%BA%E5%87%BA-wifi-%E6%99%B6%E7%89%87-esp8266-with-arduino/
http://lets-make-games.blogspot.tw/2015/04/wifi-esp8266-wifi.html
2016年12月18日 星期日
2016年12月15日 星期四
Mockito test framwork
1. tutorial
http://www.vogella.com/tutorials/Mockito/article.html
2. how to verify
http://www.baeldung.com/mockito-verify
3. how to spy
http://www.baeldung.com/mockito-spy
REFER
http://site.mockito.org/
http://www.vogella.com/tutorials/Mockito/article.html
2. how to verify
http://www.baeldung.com/mockito-verify
3. how to spy
http://www.baeldung.com/mockito-spy
REFER
http://site.mockito.org/
2016年12月4日 星期日
How to add certificate for SSL
I just joined a Hackthon recently, here is the node how I solve some problems.
1. check the certificate from a Web
$keytool -printcert -sslserver 10.2.5.2
2. get the certificate chain
$keytool -printcert -sslserver 10.2.5.2 -rfc
3. copy the message between header and footer in .crt file (ex. vm1.crt)
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-------
4. add the certificate in client's truststore
$keytool -import -file vm1.crt -alias vm1 -keystore xxx.truststore
($ input the password of keystore)
5. check the list of certificate you just added into truststore
$keytool -list -v -keystore xxx.truststore
REFER
http://doc.akka.io/docs/akka/2.4.4/scala/http/client-side/https-support.html
http://typesafehub.github.io/ssl-config/WSQuickStart.html#connecting-to-a-remote-server-over-https
https://docs.oracle.com/cd/E19509-01/820-3503/6nf1il6er/index.html
http://www.ibm.com/developerworks/library/j-customssl/sidebar.html
http://how2ssl.com/articles/working_with_pem_files/
http://stackoverflow.com/questions/8640340/how-do-i-get-into-a-non-password-protected-java-keystore-or-change-the-password
訂閱:
文章 (Atom)