Docker swarm ca with external certificate

Hi Experts,

For security compliance purpose, we’re trying to rotate the docker swarm internal CA with our own external CA. When we install the key and certificate file, swarm complained about our certificate expires too soon.

Is there a way to work around this? Please advise. Thanks.

Error message:

docker swarm ca --rotate --ca-key key --ca-cert cert
Error response from daemon: rpc error: code = InvalidArgument desc = CA certificate expires too soon

Docker version: 19.03.8