Skip to content

Load Public Key Certificates into default Trust Store #846

@mbaxr

Description

@mbaxr

I need to have the public certificates of my function app loaded into default Trust store used by the Java Function App.

Some details of my Java Function App:

  • Dedicate Premium App Service plan
  • Linux platform
  • Java 21
  • Spring Boot 3.5.x
  • Logback
  • Splunk HEC plugin

Exception:

  • javax.net.ssl.SSLHandshakeException
  • java.base/sun.security.ssl.Alert.createSSLException(Alert.java:130)
  • PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

The exception happen when Splunk try to push log messages against Splunk instance with SSL certificate signed with internal Public key certificate.

I already have the certificate configured under the Function App -> Settings -> Certificates -> Public key certificates (.cer) configurations

Image

While under Function App -> Settings -> Environments variables page I have the following App settings:

KEY VALUE
WEBSITE_LOAD_CERTIFICATES *
WEBSITE_VNET_ROUTE_ALL 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions