I used this to generate my OpenVPN certs and keys.
under Common Name enter your correct domain:
move files
for server:
create private key (under Common Name enter your correct domain):
create a public key certificate and sign it
for client: create private key (under Common Name enter your correct domain):
set ‘unique_subject = no’
create a public key certificate and sign it
generate additional files: