[openssl-users] Signing an XML file
Dr. Stephen Henson
steve at openssl.org
Wed Dec 14 10:28:14 UTC 2016
On Wed, Dec 14, 2016, Salz, Rich wrote:
> > Is there some equivalent to PHP's openssl_sign_pkcs7 function for C/C++ users?
>
> Look at the apps/pkcs7.c file as a starting point. Get the command line doing what you want, and then work through the code to pull out only the bits you need.
>
Actually smime.c is the utility you want for PKCS#7. Alternatively cms.c if
you want CMS (the successor to PKCS#7).
Those though are general purpose utilities which do all sorts of things which
most appications don't care about. There are some demos in demos/smime and
demos/cms which are much simpler.
Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
More information about the openssl-users
mailing list