cortesi/netlib — pull request #13 by a2800276 (2013-04-19 13:40:48+00:00)
Title: extensions aren't supported in v1, set to v3 (value=2) if using them.

Generated dummy certificates are (technically) incorrect, even though many tools accept them, but e.g. Java will refuse to parse them. Extensions are supported in x509v3, so in case they are used, this will set the certificate version number appropriately.