Fixing the onlyif statement as well as the erb template for creating the certificate binding