fix certificate create error