Jpaille/issue959 add test certificate generation