title: how to create a legacy (v1 or v2) X.509 cert for testing
body: <p>I have to write a test case against new code which checks to make sure that an X.509 cert is version 3, but I need some legacy (v1/v2) certs to use during testing to verify that the code works.</p>
  
  <p>I'm trying to generate the certs using openssl on a Mac. All i get are v3 certs.</p>
  
  <p>I've read thru the openssl manpage and see nothing about creating v1 or v2 certs.</p>
  
  <p>Aside from setting up an old OS on old hardware and installing an old version of openssl, are there any ideas for generating old certs or converting v3 certs to v1/v2?</p>