[Edit] You want to deploy many servers. I mistook your intention for something else. The following code may still be of some use.
If Linux, here's the code for generating keys. As for anything else you need to do.. all the command line tools are in /etc/openvpn/easy-rsa/2.0
#!/bin/bash
#
#$1 hold the cmd line argument
#A unique server name is what you should pass here
#
server_name=$1
#
#if no cmd line, exit.
#
if [ x$server_name = x ]; then
echo "Usage: $0 servername"
exit 1
fi
#
#change to the working directory
#
cd /etc/openvpn/easy-rsa/2.0
#
#generate a new key in this dir
#
if [ ! -e ./keys/$server_name.key ]; then
echo "Generating keys..."
. vars
./pkitool $server_name
echo "...keys generated [1]."
fi
that will generate a .key and .crt.
it was designed for generating client key and crts. Not sure if it will work for server key and crts too.