Change package cert to temporary cert
Supress size_t to int conversion warning