set $validityperiodunits to the default when installing manually, require $cacommonname
CA configurations need a few more options,
Added -OverwriteExistingKey for when reinstalling,
Changed some defines to classes