Help Setting up OpenVPN on Ubuntu

Asked by eolatunde

I used apt-get to download and install openvpn, but I'm not sure what to do next. I went to openvpn.net and looked through there how-to, and it is not specific to ubuntu so I am having a hard time getting it configured. I understand that my next step should be to create a certificate authority. But I have no idea how to do so. I'm still very new to linux, I'm using webmin for most of what I do on my server, however when it gets complicated like this I'm lost. Any help would be much appreciated.

Question information

Language:
English Edit question
Status:
Answered
For:
OpenVPN Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Rui Boon (ruiboon) said :
#1

I'm afraid that there is no way to create a certificate authority from webmin.
Have you tried the steps listed here (http://tech.givemethe.net/node/60) ?

Revision history for this message
eolatunde (eio6947) said :
#2

I ran into an error where it said:

CA certificate filename (or enter to create)

Making CA certificate ...
Generating a 1024 bit RSA private key
..................++++++
.......................................++++++
writing new private key to './unpsysCA/private/./cakey.pem'
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [US]:
State or Province Name (full name) [Missouri]:
Locality Name (eg, city) [Hazelwood]:
Organization Name (eg, company) [Unparallel Systems]:
Organizational Unit Name (eg, section) []:
Common Name (eg, YOUR name) []:Unparallel Systems
string is too long, it needs to be less than 0 bytes long
Common Name (eg, YOUR name) []:
Email Address []:<email address hidden>
string is too long, it needs to be less than 0 bytes long
Email Address []:

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
Using configuration from /usr/lib/ssl/openssl.cnf
Enter pass phrase for ./unpsysCA/private/./cakey.pem:
Check that the request matches the signature
Signature ok
The commonName field needed to be supplied and was missing

Now, when I go back to try it again I get a message that the files already exist.

Emmanuel Olatunde
<email address hidden>
(314)662-6979
Please send correspondance to:
<email address hidden>

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Rui Boon
Sent: Saturday, April 05, 2008 9:16 AM
To: <email address hidden>
Subject: Re: [Question #28987]: Help Setting up OpenVPN on Ubuntu

Your question #28987 on OpenVPN changed:
https://answers.launchpad.net/openvpn/+question/28987

    Status: Open => Answered

Rui Boon proposed the following answer:
I'm afraid that there is no way to create a certificate authority from webmin.
Have you tried the steps listed here (http://tech.givemethe.net/node/60) ?

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/openvpn/+question/28987/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/openvpn/+question/28987

You received this question notification because you are a direct
subscriber of the question.

Revision history for this message
Rui Boon (ruiboon) said :
#3

Can you check your /etc/ssl/openssl.cnf file?
under the [ req_distinguished_name ] section

These two lines are the default values
commonName_max = 64
emailAddress_max = 64

regrading those existing files, you will have to delete them.

Revision history for this message
Vance (ioflare2) said :
#4

This is old but still relevant as it shows first page of Google for openvpn on Ubuntu. I'll leave a link here to a detailed guide I wrote on setting up and running a OpenVPN server using webmin and the OpenVPN module on Ubuntu 13.04. A video guide is also included. This makes it ultra easy for anybody to be up and running in less than 15 minutes.

OpenVPN guide >> http://www.ioflare.com/portal/knowledgebase/3/Install-Webmin-And-OpenVPN-On-Your-Ubuntu-Cloud-Server.html

Can you help with this problem?

Provide an answer of your own, or ask eolatunde for more information if necessary.

To post a message you must log in.