Unable to verify certificate issue

Spark is a Java application and uses Java’s keystore, not Windows one. So you have to import your cert into Spark’s Java keystore. But Spark 2.8.3 doesn’t support that. So “Accept all certificates” is your only option. There might be an option to do that with 2.9.0, which is not released yet. Discussed similar issue here Openfire - Spark unable to verify certificate