prepare cert