Re: Help with PEM_write_PKCS7

2002-04-11 Thread Steve Wirth
Nicolas, make sure that you compile your program so that it uses the correct runtime-environment. For this, check the following setting: , tab , Category = "Code generation", Option = "Use run-time library" If your program uses the release build of OpenSSL libraries, set this to "Multithreaded

Re: Public Key

2002-03-14 Thread Steve Wirth
Afer generating your private key, try openssl rsa -in /php_data_priv.key -pubout -out /php_data_pub.key The file "php_data_pub.key" will contain the public part of the key only. Cheers, Steve > Hi, > > I want to make use of public key encryption > in my program, but I do not know how to generat

Re: Help !!!

2002-03-12 Thread Steve Wirth
libs are debug builds) and rebuild your application. Read the OpenSSL-FAQ for more info. Cheers, Steve -- _____ GINIT Technology GmbH [EMAIL PROTECTED] Steve Wirth PGP-Key: 0x17FA604D Emmy-Noether-Str. 11

Re: Question concerning signing of a certificate request

2002-03-07 Thread Steve Wirth
fields on >line 2 (looking for field 6, got 1, '' left)Who can help solving this problem?Thanx >in advance!Stefan Homberg -- _ GINIT Technology GmbH [EMAIL PROTECTED] Steve Wirth

Re: openssl-0.9.6b or with openssl-0.9.6-stable-SNAP-20020112

2002-01-16 Thread Steve Wirth
\cryptlib.c > cryptlib.c > .\crypto\cryptlib.c(59) : fatal error C1083: Cannot open include file: > 'stdio.h' > : No such file or directory > NMAKE : fatal error U1077: 'cl' : return code '0x2' > Stop. > > C:\sw-insta\Openssl\openssl-0.9.6-stable-SNAP-20020112&

Re: STL and openSSL don't mix?

2001-04-02 Thread Steve Wirth
Tat, I had the same problem until I changed the include order of the header files to look like this: // 1. Include OpenSSL-stuff extern "C"{ #include ... } // 2. Include STL-stuff #include #include #include ... // 3. Specify namespace using namespace std; Basically, you shouldn't include

Re: Need Help with DES !

2001-01-29 Thread Steve Wirth
Hi, your problem is that you are decrypting with a different initialization vector than the one you are encrypting with. Before decryption, you must set the ivec to the same value it had before encryption. The relevant parameter of des_ede3_cbc_encrypt() for this is "des_cblock *ivec". Try for e

Re: PEM_ASN1_read

2001-01-16 Thread Steve Wirth
ltithreaded DLL" (or "Debug Multithreaded DLL" for OpenSSL debug build). Cheers, Steve -- _____ GINIT Technology GmbH [EMAIL PROTECTED] Steve Wirth www.ginit-technology.com Emmy

Re: d2i_RSAPublicKey

2000-11-30 Thread Steve Wirth
Rafa Marín López wrote: > Hello. Hi. > > RSA * d2i_RSAPublicKey(RSA **a, unsigned char **pp, long length); > > What does length param mean? length is the length of the *pp data, that means it is the number of bytes that you want to convert from DER to internal form, starting at location *pp.

Re: X509_REQ_get_pubkey() with DSA

2000-02-08 Thread Steve Wirth
James wrote: > Hi all > > // Try to copy public key from X509 Request > > EVP_PKEY* newEvpKey = X509_REQ_get_pubkey(x509Request); > > EVP_PKEY* evpKey = EVP_PKEY_new(); > evpKey->type = newEvpKey->type; > > if(!EVP_PKEY_copy_parameters(newEvpKey, evpKey)) // <-- Segfaults here > { >EVP