4m52s Warning FailedCreate replicaset/policystatus-65ccbc6575 Error creating: Internal error occurred: failed calling webhook "gensc.sfdc.internal": Post "https://gensc.nsaux-cs.svc:443/mutate?timeout=30s": x509: certificate is not valid for any names, but wanted to match gensc.nsaux-cs.svc
Similar setup worked in MVP, however when I deployed the solution in another environment, it worked fine. I tried to compare the certificate, secret, pod etc. Everything looks similar. Unable to identify the root cause.
COMMON_NAME= gensc.nsaux-cs.svc
opensslcnfpath="/etc/ssl/openssl.cnf"
openssl req -x509 -new -nodes -key ca.key -subj "/CN=${COMMON_NAME}" -days 3650 -reqexts v3_req -extensions v3_ca -out ca.crt -config ${opensslcnfpath}