| 
      
      
      From: Scott S. <ssa...@pa...> - 2005-12-09 00:37:19
      
     | 
| oops... I figured out my problem.  All the keys I tried had to be decrypted e.g. the header reads:
   
   "-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED"
   
  So, since the PEM_read_bio_PrivateKey key passed a NULL for the password callback I was failing.  
   
  Sorry for the mistake.
  scotts
  
Scott Sachtjen <ssa...@pa...> wrote:
    I have downloaded and built the 1.0.9, but I can't seem to get any signature out of the libdkimtest application.  I have traced the problem back to the dkimsign.cpp GetSig function.  The problem appears to be PEM_read_bio_PrivateKey is returning NULL for the pkey.  I am getting a valid bio structure and I have verified that the address of the szPrivKey is in the bio structure.  The szPrivKey "looks" ok... It was generated using OpenSSL and has the standard ----- BEGIN RSA .... headers.  But for some reason it is coming back invalid.  Has anyone seen this issue?  Could someone provide a "known good" pem privatekey for me to try?  I have tried several including some provided in the OpenSSL distribution, but always the same result.
   
  Thanks in advance,
   
  Scotts
  
 |