Remove sun.security.x509 dependency