Hmmmmm,
immediately before I posted I uninstalled Openvpn, deleted all its directories, rebooted and reinstalled.
I get the same error if I put our own details in vars.bat.
The build that worked was
build-key-server dummyserver
The next command, the one that failed, was
build-key dummyclient
That was when I copied index.txt (above)
All subseqquent builds fail, all with a unique DN.
Puzzling!
btw doing most of this on windows7 ultimate, sp1, 64 bit.
Cheers,
Jon.