RE: [openssl-users] Preverify Password for certificate

2001-09-10 Thread Adam Hernik
Title: [openssl-users] Preverify Password for certificate



I am writing an application and in my code I would like 
to verify that a stored password I have will work for a certificate.

  Certificate ? Not private key 
  ?
  Is there a programatic way to do 
  this?
  I don't know how to do it for 
  certificate with is unencrypted but if you need check password 
  for
  private key try 
  PEM_read_bio_RSAPrivateKey it should return null if the password is 
  incorrect.
  Don't forget about 
  "password_callback". 
  Adas.
  ps. I don't like html in 
  mail.


RE: [openssl-users] Preverify Password for certificate

2001-09-10 Thread Andrew Finnell
Title: RE: [openssl-users] Preverify Password for certificate





 Adas,
  
 Thanks, I will try PEM_read_bio_RSAPrivateKey. Yes I was trying to check if the password was valid for a key not a certificate. I am using the password callback, but that excepts a password to be returned. In fact, in that callback I want to check if the password is correct, because if it is not I want to pop up a dialog to ask the user for a different password. Also about the HTML, I have no choice. My mail goes through Exchange server which attaches a server specific signature about itself and converts my email to HTML. I don't like it either but I have no choice.. In fact all the e-mails I write, I only write in plain text, this is how I know the server converts it to HTML anyways.. Sorry.

 - Andrew
 
 
-Original Message-
From: Adam Hernik [mailto:[EMAIL PROTECTED]] 
Sent: Monday, September 10, 2001 11:00 AM
To: [EMAIL PROTECTED]
Subject: RE: [openssl-users] Preverify Password for certificate



I am writing an application and in my code I would like to verify that a stored password I have will work for a certificate. 

Certificate ? Not private key ?
Is there a programatic way to do this? 
I don't know how to do it for certificate with is unencrypted but if you need check password for
private key try PEM_read_bio_RSAPrivateKey it should return null if the password is incorrect.
Don't forget about password_callback. 
Adas. 
ps. I don't like html in mail.