c:\PROGRA~2\OpenVPN\easy-rsa>rem sign the cert request with our ca, creating a c
ert/key pair
c:\PROGRA~2\OpenVPN\easy-rsa>openssl ca -days 3650 -out c:\PROGRA~2\OpenVPN\easy
-rsa\keys\server.crt -in c:\PROGRA~2\OpenVPN\easy-rsa\keys\server.csr -extension
s server -config openssl-1.0.0.cnf
Using configuration from openssl-1.0.0.cnf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
countryName :PRINTABLE:'PL'
stateOrProvinceName :PRINTABLE:'PL'
localityName :PRINTABLE:'PL'
organizationName :PRINTABLE:'PL'
organizationalUnitName:PRINTABLE:'PL'
commonName :PRINTABLE:'PL'
name :PRINTABLE:'PL'
emailAddress :IA5STRING:'PL@PL.PL'
Certificate is to be certified until Oct 5 20:57:44 2022 GMT (3650 days)
Sign the certificate? [y/n]:y
1 out of 1 certificate requests certified, commit? [y/n]y
Write out database with 1 new entries
c:\PROGRA~2\OpenVPN\easy-rsa>rem delete any .old files created in this process,
to avoid future file creation errors
c:\PROGRA~2\OpenVPN\easy-rsa>del /q c:\PROGRA~2\OpenVPN\easy-rsa\keys\*.old
c:\PROGRA~2\OpenVPN\easy-rsa>dir keys
Wolumin w stacji C to Win
Numer seryjny woluminu: 0AF5-C5F8
Katalog: c:\PROGRA~2\OpenVPN\easy-rsa\keys
2012-10-07 22:58
.
2012-10-07 22:58 ..
2012-10-07 22:58 3 798 01.pem
2012-10-07 22:54 1 188 ca.crt
2012-10-07 22:54 891 ca.key
2012-10-07 22:54 245 dh1024.pem
2012-10-07 22:58 92 index.txt
2012-10-07 22:58 21 index.txt.attr
2012-10-07 22:58 3 serial
2012-10-07 22:58 3 798 server.crt
2012-10-07 22:57 668 server.csr
2012-10-07 22:57 887 server.key
10 plik(ów) 11 591 bajtów
2 katalog(ów) 2 272 952 320 bajtów wolnych
c:\PROGRA~2\OpenVPN\easy-rsa>type keys\serial
02
c:\PROGRA~2\OpenVPN\easy-rsa>type keys\index.txt
V 221005205744Z 01 unknown /C=PL/ST=PL/L=PL/O=PL/OU=PL/CN=P
L/name=PL/emailAddress=PL@PL.PL
c:\PROGRA~2\OpenVPN\easy-rsa>type keys\index.txt.attr
unique_subject = yes
c:\PROGRA~2\OpenVPN\easy-rsa>
c:\PROGRA~2\OpenVPN\easy-rsa>build-key.bat client1
c:\PROGRA~2\OpenVPN\easy-rsa>cd c:\PROGRA~2\OpenVPN\easy-rsa
c:\PROGRA~2\OpenVPN\easy-rsa>rem build a request for a cert that will be valid f
or ten years
c:\PROGRA~2\OpenVPN\easy-rsa>openssl req -days 3650 -nodes -new -keyout c:\PROGR
A~2\OpenVPN\easy-rsa\keys\client1.key -out c:\PROGRA~2\OpenVPN\easy-rsa\keys\cli
ent1.csr -config openssl-1.0.0.cnf
Generating a 1024 bit RSA private key
.................++++++
...++++++
writing new private key to 'c:\PROGRA~2\OpenVPN\easy-rsa\keys\client1.key'
-----
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) [PL]:
State or Province Name (full name) [PL]:
Locality Name (eg, city) [PL]:
Organization Name (eg, company) [PL]:
Organizational Unit Name (eg, section) [PL]:
Common Name (eg, your name or your server's hostname) [PL]:
Name [PL]:
Email Address [PL@PL.PL]:
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
c:\PROGRA~2\OpenVPN\easy-rsa>rem sign the cert request with our ca, creating a c
ert/key pair
c:\PROGRA~2\OpenVPN\easy-rsa>openssl ca -days 3650 -out c:\PROGRA~2\OpenVPN\easy
-rsa\keys\client1.crt -in c:\PROGRA~2\OpenVPN\easy-rsa\keys\client1.csr -config
openssl-1.0.0.cnf
Using configuration from openssl-1.0.0.cnf
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
countryName :PRINTABLE:'PL'
stateOrProvinceName :PRINTABLE:'PL'
localityName :PRINTABLE:'PL'
organizationName :PRINTABLE:'PL'
organizationalUnitName:PRINTABLE:'PL'
commonName :PRINTABLE:'PL'
name :PRINTABLE:'PL'
emailAddress :IA5STRING:'PL@PL.PL'
Certificate is to be certified until Oct 5 21:19:18 2022 GMT (3650 days)
Sign the certificate? [y/n]:y
failed to update database
TXT_DB error number 2
c:\PROGRA~2\OpenVPN\easy-rsa>rem delete any .old files created in this process,
to avoid future file creation errors
c:\PROGRA~2\OpenVPN\easy-rsa>del /q c:\PROGRA~2\OpenVPN\easy-rsa\keys\*.old
Nie można odnaleĉ c:\PROGRA~2\OpenVPN\easy-rsa\keys\*.old.
c:\PROGRA~2\OpenVPN\easy-rsa>