Docker swarm ca rotate with new certs,keys failing with SHA1 -RSA error

  • Issue type --Docker swarm ca rotate with new certs,keys failing with SHA1 -RSA error

  • Client: Docker Engine - Community
    Version: 19.03.5
    API version: 1.40 (minimum version 1.12)

  • Steps to reproduce

Whenever try to rotate cert in docker swarm it fails with sha1 error.
docker swarm ca --rotate --ca-cert customcrt.pem --ca-key customkey.pem

“Error response from daemon: rpc error: code = InvalidArgument desc = unsupported signature algorithm: SHA1-RSA”

Is it that docker only supports sha256 root ca .Any recommendations how to solve this??

We are unable to generate a cross-signed certificate for root rotation as per

Thanks