fix invalid certificate, update combined script