Thanks for your tip. I have read the bug notes and applied the patches.
Now I succesfully run the ssl server. But I am not much expirienced in
ssl technologies and not much familliar with pk11 modules and
interface.

So there is one problem. When I call function PK11_FindKeyByAnyCert
there is need to specify the password protecting the server's
certificate private key in the database because I am not logged in to
the database yet.

I implemented my own nsIPrompt and overloaded its PromptPassword
method. In this method the password is loaded from preference service.
Instance of my nsIPrompt is given to the function PK11_FindKeyByAnyCert
call as the second parameter.

This is total hack and absolutely inappropiate way of password
management.

So I'd like to ask you what is the right way to pass the password to
the function or how to login to the database previewsly.

Thank you very much.

_______________________________________________
Mozilla-netlib mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-netlib

Reply via email to