Hello guys

i try to generate DSA keys in .DER format using those documents:
http://www.openssl.org/docs/HOWTO/keys.txt
http://www.openssl.org/docs/apps/x509.html

but i fail (i installed openssl win32 v1.0.1)

i run the following commands:
openssl genrsa -out privkey.pem 2048
openssl dsaparam -out dsaparam.pem 2048
openssl gendsa -out privkey.pem dsaparam.pem
openssl x509 -in dsaparam.pem -inform PEM -out dsaparam.der -outform DER

i have no clue whats going wrong
this is my output:

[Quote]
C:\OpenSSL-Win32\bin>openssl genrsa -out privkey.pem 2048
WARNING: can't open config file: /usr/local/ssl/openssl.cnf
Loading 'screen' into random state - done
Generating RSA private key, 2048 bit long modulus
................................................................................
.............+++
.....................+++
e is 65537 (0x10001)

C:\OpenSSL-Win32\bin>openssl dsaparam -out dsaparam.pem 2048
WARNING: can't open config file: /usr/local/ssl/openssl.cnf
Loading 'screen' into random state - done
Generating DSA parameters, 2048 bit long prime
This could take some time
.+......+..+...........+.....+......+...+.............+...+.........+.+........+
..............+...........+......................+......+...++++++++++++++++++++
+++++++++++++++++++++++++++++++*
.........+......+.....+.....+..+.........+..+...+..+....................+.......
+.......................+....+.......+.........+.............+........+...+..+..
.............+.+...................+.+.....+..............+.............+.......
+.+.....................+..............+.+..............+..+....................
..............+...............+............+....................................
......................+..........+...............+.......................+......
.....+...........................................+...+...................+......
...+.+.+......+.+.................+...+...+.+..+.............+...........+......
..........................+...................+..........+.......+.+.+.+.+......
..........+...............................+..+.....+......................+.....
..+.....+................+.......................+..+.....................+.+...
.......+.+.+..............+.+.................................+.................
...+..+.............+......+...........+.....................+.+.....+........+.
......+...................+............+...........+............+...............
....+......+............+..+...+........+....................................+..
........+..........+.........+...........................+......................
.+...+.......+..........+....+.........+..............................+.........
...+.....+...+...................................+++++++++++++++++++++++++++++++
++++++++++++++++++++*

C:\OpenSSL-Win32\bin>openssl gendsa -out privkey.pem dsaparam.pem
WARNING: can't open config file: /usr/local/ssl/openssl.cnf
Loading 'screen' into random state - done
Generating DSA key, 2048 bits

C:\OpenSSL-Win32\bin>openssl x509 -in dsaparam.pem -inform PEM -out
dsaparam.der
 -outform DER
WARNING: can't open config file: /usr/local/ssl/openssl.cnf
unable to load certificate
4064:error:0906D06C:PEM routines:PEM_read_bio:no start
line:.\crypto\pem\pem_lib
.c:696:Expecting: TRUSTED CERTIFICATE
[/Quote]

any help wellcome
ludwig
-- 
View this message in context: 
http://old.nabble.com/-Beginner--generating-DSA-keypair-in-.der-format-tp33544906p33544906.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to