証明書が無効なため、ユーザーはS3バケットにアクセスできません
環境
- ONTAP
- ONTAP S3バケット
- Openshiftホスト
問題
- Openshiftホストは、S3バケットからイメージをプルできません。
- S3バケットへのアクセス時に以下のエラーが発生します:
例:
Could not connect to storage default. Error:get "https://s3store.abc.xyz/openshiftint...try/?location=": tls: failed to verify certificate: x509: certificate signed by unknown authorityError: Certificate is not valid- イベントログから、Bad Certificateが原因でTLS接続が失敗したことがわかります。
例:
Mon Jul 29 12:59:19 +0530 [Node-01: ktlsd: ktls.failed:notice]: "The TLS connections have failed several times with remote host '172.17.204.40' in IPspace '4294967295', for which the latest reason given is: OpenSSL: error:0A000412:SSL routines::sslv3 alert bad certificate."
- メッセージセクションから、Bad Certificateによりハンドシェイクが失敗します
例:
Mon Jul 29 2024 12:59:19 +05:30 [Jul 29 12:59:19]: ERR: ktlsd: abortHandshake:src/tables/net_ssl_handshake.cc:2073 OpenSSL call failed: OpenSSL: error:0A000412:SSL routines::sslv3 alert bad certificate
Mon Jul 29 2024 13:01:55 +05:30 [Jul 29 13:01:55]: ERR: security_shared::filesystem::ScopedFlock: [createDirectoriesAndOpenFile]:166: Failed to create directories: Invalid argument
Mon Jul 29 2024 13:01:55 +05:30 [Jul 29 13:01:55]: ERR: libsslmgnt::filesystem::AbstractPemBundle: [getData]:42: Unable to acquire lock in
- また、S3サーバーを使用しているKubernetes Podシステムでは、以下のエラーがログに記録されます:
例:
level=error ts=2025-04-10T08:10:57.709360403Z caller=flush.go:261 component=ingester loop=3 org_id=application msg="failed to flush" retries=2 err="failed to flush chunks: store put chunk: RequestError: send request failed\ncaused by: Put \"https://SVMS3.abc.com/bucket1/applic...44%3Ad387f13f\": tls: failed to verify certificate: x509: certificate signed by unknown authority, num_chunks: 1, labels: {kubernetes_container_name=\"name\", kubernetes_host=\"host.abc.com\", kubernetes_namespace_name=\"name-xx-wms\", kubernetes_pod_name=\"name\", log_type=\"application\"}"
- AWS SDK環境でのエラー
例:
Error: software.amazon.awssdk.core.exception.SdkClientException: Unable to execute HTTP request: com.domain.jsse2.util.k: PKIX path building failed: com.domain.security.cert.IBMCertPathBuilderException: unable to find valid certification path to requested target (SDK Attempt Count: 4)