hashicorp / hashicorp/consul

Unable to rotate Consul CA after 1st successful rotation

Open
#10,070 13 comments 1 reaction 0 assignees View on GitHub
theme/certificates theme/connect theme/consul-vault type/bug
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

Hello,

I enabled connect in my consul cluster so it had the default consul ca provider.

I rotated it with my custom CA configs, forming a chain to the root CA system. All went smooth.

The second time I try to rotate it. It does not work. It gives below error
`
rpc error making call: error generating CA certificate: x509: requested SignatureAlgorithm does not match private key type
`

This hinders CA rotation as expiration time nears. I verified from my end that the 2nd time I create a new csr and its private key, its an "ec" private key.

Why does this happen? Can someone provide an insight as to what is happening here ?

Version of consul : 1.9.5

Signer is Vault (Intermediate , key type : RSA )

Consul CA (key type : EC ) is getting its CSR signed from this vault

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.