Matthias Barmeier wrote:
Hi,

ok, sorry for not understanding what happens. The call
OpenSSL_add_all_algorithms() was missing.

After adding it everything seems to work perfect.

Shouldn't this be mentioned on the man page of the PEM functions ?

It is not PEM specific - it applies to anything trying to use an algorithm which hasn't been registered.


The FAQ does indeed contain information about this:

http://www.openssl.org/support/faq.html#PROG8

8. Why do I get errors about unknown algorithms?

The cause is forgetting to load OpenSSL's table of algorithms with OpenSSL_add_all_algorithms(). See the manual page for more information. This can cause several problems such as being unable to read in an encrypted PEM file, unable to decrypt a PKCS#12 file or signature failure when verifying certificates.

Tim.

Attachment: PGP.sig
Description: PGP signature

Reply via email to