fixed segfault error, and post error. SSL_CERT needs work for windows