:opt_start\r
set PARAM=%1\r
if not defined PARAM goto opt_end\r
-if %1==-cn goto opt_fqdn\r
-if %1==-years goto opt_years\r
+if %1==-h goto opt_fqdn\r
+if %1==-y goto opt_years\r
goto usage\r
:opt_end\r
\r
goto opt_start\r
\r
:usage\r
-echo usage: keygen [-cn cert common name to use] [-years years to issue cert]\r
+echo usage: keygen [-h hostname/cn for cert] [-y years to issue cert]\r
exit /b\r
\r
:guess_fqdn\r