Revert "cm versioning: fix certificate check"

This reverts commit 8938d68e3ee3d3c909f238436b67d297893a6ea5.