Unable to connect to secured schema registry from Azure Databricks

rahulgulati89
New Contributor II

Hi,

I am unable to connect to secure schema registry(running on https) as it is breaking with below mentioned error.

SCHEMA_REGISTRY_CONFIGURATION_ERROR] Schema from schema registry could not be initialized. Error while fetching schema for subject 'env-dev-market-daily_eod_price-log-v1-value' from the registry: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target.

My use case is to connect Spark Job running on Azure Databricks to my Kafka Clusterand Schema Registry which are running on SASL_SSL and https resp. I am trying to pass ssl certificate like below but they dont seem to be taking effect. I have added the truststore jks file in DBFS.

My code base is as below. Does anyone know what i am missing here?

rahulgulati89_0-1694516966345.png

Thanks in advance.