fixed #1
added invalid certificate message
version 1.0.0.pre.4