1 | c:\PROGRA~2\OpenVPN\easy-rsa>rem sign the cert request with our ca, creating a c |
---|
2 | ert/key pair |
---|
3 | |
---|
4 | c:\PROGRA~2\OpenVPN\easy-rsa>openssl ca -days 3650 -out c:\PROGRA~2\OpenVPN\easy |
---|
5 | -rsa\keys\server.crt -in c:\PROGRA~2\OpenVPN\easy-rsa\keys\server.csr -extension |
---|
6 | s server -config openssl-1.0.0.cnf |
---|
7 | Using configuration from openssl-1.0.0.cnf |
---|
8 | Check that the request matches the signature |
---|
9 | Signature ok |
---|
10 | The Subject's Distinguished Name is as follows |
---|
11 | countryName :PRINTABLE:'PL' |
---|
12 | stateOrProvinceName :PRINTABLE:'PL' |
---|
13 | localityName :PRINTABLE:'PL' |
---|
14 | organizationName :PRINTABLE:'PL' |
---|
15 | organizationalUnitName:PRINTABLE:'PL' |
---|
16 | commonName :PRINTABLE:'PL' |
---|
17 | name :PRINTABLE:'PL' |
---|
18 | emailAddress :IA5STRING:'PL@PL.PL' |
---|
19 | Certificate is to be certified until Oct 5 20:57:44 2022 GMT (3650 days) |
---|
20 | Sign the certificate? [y/n]:y |
---|
21 | |
---|
22 | |
---|
23 | 1 out of 1 certificate requests certified, commit? [y/n]y |
---|
24 | Write out database with 1 new entries |
---|
25 | |
---|
26 | c:\PROGRA~2\OpenVPN\easy-rsa>rem delete any .old files created in this process, |
---|
27 | to avoid future file creation errors |
---|
28 | |
---|
29 | c:\PROGRA~2\OpenVPN\easy-rsa>del /q c:\PROGRA~2\OpenVPN\easy-rsa\keys\*.old |
---|
30 | |
---|
31 | c:\PROGRA~2\OpenVPN\easy-rsa>dir keys |
---|
32 | Wolumin w stacji C to Win |
---|
33 | Numer seryjny woluminu: 0AF5-C5F8 |
---|
34 | |
---|
35 | Katalog: c:\PROGRA~2\OpenVPN\easy-rsa\keys |
---|
36 | |
---|
37 | 2012-10-07 22:58 <DIR> . |
---|
38 | 2012-10-07 22:58 <DIR> .. |
---|
39 | 2012-10-07 22:58 3 798 01.pem |
---|
40 | 2012-10-07 22:54 1 188 ca.crt |
---|
41 | 2012-10-07 22:54 891 ca.key |
---|
42 | 2012-10-07 22:54 245 dh1024.pem |
---|
43 | 2012-10-07 22:58 92 index.txt |
---|
44 | 2012-10-07 22:58 21 index.txt.attr |
---|
45 | 2012-10-07 22:58 3 serial |
---|
46 | 2012-10-07 22:58 3 798 server.crt |
---|
47 | 2012-10-07 22:57 668 server.csr |
---|
48 | 2012-10-07 22:57 887 server.key |
---|
49 | 10 plik(ów) 11 591 bajtów |
---|
50 | 2 katalog(ów) 2 272 952 320 bajtów wolnych |
---|
51 | |
---|
52 | c:\PROGRA~2\OpenVPN\easy-rsa>type keys\serial |
---|
53 | 02 |
---|
54 | |
---|
55 | c:\PROGRA~2\OpenVPN\easy-rsa>type keys\index.txt |
---|
56 | V 221005205744Z 01 unknown /C=PL/ST=PL/L=PL/O=PL/OU=PL/CN=P |
---|
57 | L/name=PL/emailAddress=PL@PL.PL |
---|
58 | |
---|
59 | c:\PROGRA~2\OpenVPN\easy-rsa>type keys\index.txt.attr |
---|
60 | unique_subject = yes |
---|
61 | |
---|
62 | c:\PROGRA~2\OpenVPN\easy-rsa> |
---|
63 | |
---|
64 | |
---|
65 | c:\PROGRA~2\OpenVPN\easy-rsa>build-key.bat client1 |
---|
66 | |
---|
67 | c:\PROGRA~2\OpenVPN\easy-rsa>cd c:\PROGRA~2\OpenVPN\easy-rsa |
---|
68 | |
---|
69 | c:\PROGRA~2\OpenVPN\easy-rsa>rem build a request for a cert that will be valid f |
---|
70 | or ten years |
---|
71 | |
---|
72 | c:\PROGRA~2\OpenVPN\easy-rsa>openssl req -days 3650 -nodes -new -keyout c:\PROGR |
---|
73 | A~2\OpenVPN\easy-rsa\keys\client1.key -out c:\PROGRA~2\OpenVPN\easy-rsa\keys\cli |
---|
74 | ent1.csr -config openssl-1.0.0.cnf |
---|
75 | Generating a 1024 bit RSA private key |
---|
76 | .................++++++ |
---|
77 | ...++++++ |
---|
78 | writing new private key to 'c:\PROGRA~2\OpenVPN\easy-rsa\keys\client1.key' |
---|
79 | ----- |
---|
80 | You are about to be asked to enter information that will be incorporated |
---|
81 | into your certificate request. |
---|
82 | What you are about to enter is what is called a Distinguished Name or a DN. |
---|
83 | There are quite a few fields but you can leave some blank |
---|
84 | For some fields there will be a default value, |
---|
85 | If you enter '.', the field will be left blank. |
---|
86 | ----- |
---|
87 | Country Name (2 letter code) [PL]: |
---|
88 | State or Province Name (full name) [PL]: |
---|
89 | Locality Name (eg, city) [PL]: |
---|
90 | Organization Name (eg, company) [PL]: |
---|
91 | Organizational Unit Name (eg, section) [PL]: |
---|
92 | Common Name (eg, your name or your server's hostname) [PL]: |
---|
93 | Name [PL]: |
---|
94 | Email Address [PL@PL.PL]: |
---|
95 | |
---|
96 | Please enter the following 'extra' attributes |
---|
97 | to be sent with your certificate request |
---|
98 | A challenge password []: |
---|
99 | An optional company name []: |
---|
100 | |
---|
101 | c:\PROGRA~2\OpenVPN\easy-rsa>rem sign the cert request with our ca, creating a c |
---|
102 | ert/key pair |
---|
103 | |
---|
104 | c:\PROGRA~2\OpenVPN\easy-rsa>openssl ca -days 3650 -out c:\PROGRA~2\OpenVPN\easy |
---|
105 | -rsa\keys\client1.crt -in c:\PROGRA~2\OpenVPN\easy-rsa\keys\client1.csr -config |
---|
106 | openssl-1.0.0.cnf |
---|
107 | Using configuration from openssl-1.0.0.cnf |
---|
108 | Check that the request matches the signature |
---|
109 | Signature ok |
---|
110 | The Subject's Distinguished Name is as follows |
---|
111 | countryName :PRINTABLE:'PL' |
---|
112 | stateOrProvinceName :PRINTABLE:'PL' |
---|
113 | localityName :PRINTABLE:'PL' |
---|
114 | organizationName :PRINTABLE:'PL' |
---|
115 | organizationalUnitName:PRINTABLE:'PL' |
---|
116 | commonName :PRINTABLE:'PL' |
---|
117 | name :PRINTABLE:'PL' |
---|
118 | emailAddress :IA5STRING:'PL@PL.PL' |
---|
119 | Certificate is to be certified until Oct 5 21:19:18 2022 GMT (3650 days) |
---|
120 | Sign the certificate? [y/n]:y |
---|
121 | failed to update database |
---|
122 | TXT_DB error number 2 |
---|
123 | |
---|
124 | c:\PROGRA~2\OpenVPN\easy-rsa>rem delete any .old files created in this process, |
---|
125 | to avoid future file creation errors |
---|
126 | |
---|
127 | c:\PROGRA~2\OpenVPN\easy-rsa>del /q c:\PROGRA~2\OpenVPN\easy-rsa\keys\*.old |
---|
128 | Nie mo¿na odnaleæ c:\PROGRA~2\OpenVPN\easy-rsa\keys\*.old. |
---|
129 | |
---|
130 | c:\PROGRA~2\OpenVPN\easy-rsa> |
---|