Tips:
- To enable SSL handshake debug:
-Djavax.net.debug=ssl,handshake - when Create a KeyStore, Client Key Pairs should be encrypted with password. ( the same password of the key store), otherwise, an exception of Can’t recover key will be threw)
Tips:
1. Open Command Prompt (enter CMD in the “type here to search bar”)
2. Copy this and hit enter: wmic bios get serialnumber
3. Copy this and hit enter: wmic computersystem get model,name,manufacturer,systemtype
4. Your screen should look like this:
There are few useful tools could be use to test some parameter before you start configure SSO connection with the IdP provider:
If you want to test SP initiate SSO and your IdP is Microsoft Online (https://login.microsoftonline.com), you can to the following
https://idp.ssocircle.com/sso/toolbox/samlEncode.jsp
Therre is another useful tool set avaiable here : https://www.samltool.com/url.php
It provides many useful tools:
When working with Spring Data for file based integration, I was wondering how the application is handling the file processing. We have seen file descriptors left opened after the application run for a while. and the application eventually stalled because an IO Exception being through out for the files opened by the application have reached its maximum.
The following script help me to monitor the file descriptor opened in the Linux server:
#!/bin/sh
#
#published GNU GPL3.0
#please change /foo/bar to the folder you want to mornitor
PID=`ps -eaf | grep tomcat | grep -v grep |grep org.apache.catalina.startup.Bootstrap | awk '{print $2}'`
if [[ "" != "$PID" ]]; then
DATE=`date '+%Y-%m-%d %H:%M:%S'`
echo "PID $PID $DATE">>lsof.log
/usr/sbin/lsof -a -p $PID|grep /foo/bar >>lsof.log
fi