add save cert feature.