[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

[Openvpn-users] why makes mistakes in Building RSA Certificates and Keys?


  • Subject: [Openvpn-users] why makes mistakes in Building RSA Certificates and Keys?
  • From: "mdd" <ddma@xxxxxxxxxxx>
  • Date: Mon, 5 Apr 2004 09:51:07 +0800

>
>Hi,
My step is as follow:
1.Edit /usr/share/ssl/openssl.cnf;
 [ CA_default ]
 
dir             = /etc/openvpn          # Where everything is kept
certs           = $dir/                 # Where the issued certs are kept
crl_dir         = $dir/                 # Where the issued crl are kept
database        = $dir/index.txt        # database index file.
new_certs_dir   = $dir/                 # default place for new certs.
 
certificate     = $dir/my-ca.crt        # The CA certificate
serial          = $dir/serial           # The current serial number
private_key     = $dir/my-ca.key        # The private key
2.openssl req -nodes -new -x509 -keyout my-ca.key -out my-ca.crt -days 3650
3.openssl req -nodes -new -keyout server.key -out server.csr
4.openssl ca -out server.crt -in server.csr
 
In the fourth step,come forth error as follow:
 
Using configuration from /usr/share/ssl/openssl.cnf
wrong number of fields on line 1 (looking for field 6, got 1, '' left)

I don't know the reason of error.
Can somebody help me?
 
Thanks!