Hi,

Have you tried changing this
        if (!X509_sign(x,pk,EVP_sha1()))

to
        if (!X509_sign(x,pk,EVP_sha256()))



On Thu, Apr 28, 2011 at 4:13 AM, Mike Markley <[email protected]> wrote:

> I am creating a self signed x509 certificate using code based on the
> mkcert.c sample code included in the OpenSSL demo sources. I need to
> set the algorithm to sha256WithRSAEncryption and I cannot figure out
> how to do this with the APIs. I always end up with
> sha1WithRSAEncryption. Am I trying to do the impossible here?
>
> Thanks,
> Mike
> [email protected]
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    [email protected]
> Automated List Manager                           [email protected]
>

Reply via email to