-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Сluster build error - x509: certificate relies on legacy Common Name field #51
Comments
Logs with a latest code from Jul 29 12:23:22 ip-172-31-31-136.ec2.internal docker[1760]: 2021-07-29T12:23:22.251Z [INFO] http: TLS handshake error from 172.31.31.168:55606: remote error: tls: bad certificate
Jul 29 12:23:22 ip-172-31-31-136.ec2.internal docker[1760]: 2021-07-29T12:23:22.090Z [INFO] core: security barrier not initialized
Jul 29 12:23:22 ip-172-31-31-136.ec2.internal docker[1760]: 2021-07-29T12:23:22.044Z [ERROR] core: failed to retry join raft cluster: retry=2s
Jul 29 12:23:22 ip-172-31-31-136.ec2.internal docker[1760]: 2021-07-29T12:23:22.044Z [WARN] core: join attempt failed: error="error during raft bootstrap init call: Put "https://node2.vault.int:8200/v1/sys/storage/raft/bootstrap/challenge": x509: certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name matching with GODEBUG=x509ignoreCN=0"
Jul 29 12:23:22 ip-172-31-31-136.ec2.internal docker[1760]: 2021-07-29T12:23:22.038Z [INFO] core: attempting to join possible raft leader node: leader_addr=https://node2.vault.int:8200
Jul 29 12:23:22 ip-172-31-31-136.ec2.internal docker[1760]: 2021-07-29T12:23:22.038Z [INFO] core: security barrier not initialized
Jul 29 12:23:22 ip-172-31-31-136.ec2.internal docker[1760]: 2021-07-29T12:23:22.038Z [WARN] core: join attempt failed: error="error during raft bootstrap init call: Put "https://node1.vault.int:8200/v1/sys/storage/raft/bootstrap/challenge": x509: certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name matching with GODEBUG=x509ignoreCN=0"
Jul 29 12:23:22 ip-172-31-31-136.ec2.internal docker[1760]: 2021-07-29T12:23:22.031Z [INFO] core: attempting to join possible raft leader node: leader_addr=https://node1.vault.int:8200 |
Starting from Vault version 1.6.0 it moved to Go version 1.15.4
from Go
as an alternative way to fix this issue can be adding environment variable |
Error building cluster -
x509: certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name matching with GODEBUG=x509ignoreCN=0
system log:
the error occurs on the latest Vault version
1.7.3
, with version1.4.2
works finehow to reproduce:
the same behavior with latest Vault module code from master where
rkt
replaced with aDocker
The text was updated successfully, but these errors were encountered: