an example of generating a cert chain