Fixed security provider java 6 ssl issues closes #1335