Test for certificate generation using mark and reset

Make sure that generateCertificate and generateCertificates end at the
right point when using a stream supporting mark and reset.

The support for this seems spotty at best. Various implementations have
broken support in different parts.

Change-Id: Ib8a3f7c451adca4e05fcb3e8409e93c319557497
1 file changed