Hello openssl-users,

  I need to re-invent the Sipura's|Linksys's "gen_mc" utility which
  creates what they call a "Mini Certificate".

  I've stuck at an attempt to use "RSA_sign()" properly.
  Is it at all possible to have an RSA object not generated with
  "RSA_generate_key()" but manually filled with the private key as the
  HEX buffer? I.e. without all accompanying "*p", "*q", "*n" and "*e"
  parameters and "*d" read from an external file?

  Can someone give an example code?

  The attached is my lame approach to the task.

  My idea was to split apart the example "MiniCert" from the Linksys's
  documentation to be able to learn which algorithm they use for
  signatures. (The documentation provides the base64-encoded CA's
  public and private keys, user's private key, the MiniCert, which is
  the concatenation of username, validity period, user's public key
  and CA's public key. I was able to extract CA's public key from the
  MiniCert, now I need to check where is the user's public key there
  and which signature was used...)

  The problem is: no matter that I replace the "RSA rsa->d" (the
  private key) part of RSA object with an example CA's private key -
  the RSA_sign() seems to re-create it's own one from p,q,n,e.

-- 
Best regards,
 Tony                    mailto:[EMAIL PROTECTED]

Attachment: gen-mc.c.tgz
Description: application/compressed

Reply via email to