Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): OS version 3.3.2, dashboard: 3.3.0
Describe the issue: While trying to connect minio (on https), following error occurs: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Configuration: OS installed using helm with customized values.yml, tried to add the ca cert of minio (i.e. ca crt of k3s, which is the issuer of minio’s cert) in OS’s truststore using command
keytool -importcert
-alias k3s-ca
-file /tmp/k3s-ca.crt
-keystore /usr/share/opensearch/config/truststore.jks
-storepass changeit
-noprompt
Certificate was added to keystore`
Did this in all nodes, then did helm upgrade but OS is still not recognizing the minio’s cert…
Relevant Logs or Screenshots:
When trying to run command on console:
PUT _snapshot/minio-repo
{
“type”: “s3”,
“settings”: {
“bucket”: “opensearch-snapshots”,
“base_path”: “snapshots”,
“client”: “default”,
“endpoint”: “``https://soc-minio-pool-0-0.soc-minio-hl.minio-tenant.svc.cluster.local:9000``”,
“protocol”: “https”,
“path_style_access”: true,
“compress”: true,
“region”: “us-east-1”
}
}
Error is:
{
“error”: {
“root_cause”: [
{
“type”: “repository_verification_exception”,
“reason”: “[minio-repo] path [snapshots] is not accessible on cluster-manager node”
}
],
“type”: “repository_verification_exception”,
“reason”: “[minio-repo] path [snapshots] is not accessible on cluster-manager node”,
“caused_by”: {
“type”: “i_o_exception”,
“reason”: “Unable to upload object [snapshots/tests-lZUX43fUSM2K8Wjl8hKs8g/master.dat] using a single upload”,
“caused_by”: {
“type”: “sdk_client_exception”,
“reason”: “sdk_client_exception: Unable to execute HTTP request: (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target (SDK Attempt Count: 4)”,
“caused_by”: {
“type”: “i_o_exception”,
“reason”: “(certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target”,
“caused_by”: {
“type”: “validator_exception”,
“reason”: “validator_exception: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target”,
“caused_by”: {
“type”: “sun_cert_path_builder_exception”,
“reason”: “sun_cert_path_builder_exception: unable to find valid certification path to requested target”
}
}
},
“suppressed”: [
{
“type”: “sdk_client_exception”,
“reason”: “sdk_client_exception: Request attempt 1 failure: Unable to execute HTTP request: (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target”
},
{
“type”: “sdk_client_exception”,
“reason”: “sdk_client_exception: Request attempt 2 failure: Unable to execute HTTP request: (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target”
},
{
“type”: “sdk_client_exception”,
“reason”: “sdk_client_exception: Request attempt 3 failure: Unable to execute HTTP request: (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target”
}
]
}
}
},
“status”: 500
}