gen-test-ca script
Improve gen-test-ca script a bit