Project Sahara: certificate output with CRLF, not just CR - Openssl

This is a discussion on Project Sahara: certificate output with CRLF, not just CR - Openssl ; This is a completely stupid question, but is there a command line option from openssl to add use CRLF instead of just CR. Running unix2dos after the file is made is not an easy option in Windows...unfortunately. Chris Hinshaw Avocent ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Project Sahara: certificate output with CRLF, not just CR

  1. Project Sahara: certificate output with CRLF, not just CR

    This is a completely stupid question, but is there a command line option
    from openssl to add use CRLF instead of just CR. Running unix2dos after
    the file is made is not an easy option in Windows...unfortunately.


    Chris Hinshaw

    Avocent - Redmond Engineering

    chris.hinshaw@avocent.com





  2. Re: Project Sahara: certificate output with CRLF, not just CR

    Not that I know of.

    Hm, you may want to edit the sample code where it opens the stdout BIO
    (look for BIO_new_fp(stdout, BIO_NOCLOSE)) and add the BIO_FP_TEXT
    flag there to make it spit out CRLF line ends on msdos/win, then
    recompile.

    i.e.:
    var = BIO_new_fp(stdout, BIO_NOCLOSE);
    -->
    var = BIO_new_fp(stdout, BIO_NOCLOSE|BIO_FP_TEXT);

    Caveat: when you write binary format files to such a BIO, they will be
    damaged as every byte 0x0A (LF) will be converted to the sequence 0x0D
    0x0A (CR LF): the code has no way of knowing what sort of data you are
    feeding it. If you don't want that risk, you should add a little extra
    code (adding a commandline option) to selectively add that BIO_FP_TEXT
    flag there.

    HTH

    Ger



    On Wed, Jul 30, 2008 at 1:04 AM, Hinshaw, Chris
    wrote:
    > This is a completely stupid question, but is there a command line option
    > from openssl to add use CRLF instead of just CR. Running unix2dos after the
    > file is made is not an easy option in Windows…unfortunately.
    >
    > Chris Hinshaw
    >
    > Avocent – Redmond Engineering
    >
    > chris.hinshaw@avocent.com
    >
    >




    --
    Met vriendelijke groeten / Best regards,

    Ger Hobbelt

    --------------------------------------------------
    web: http://www.hobbelt.com/
    http://www.hebbut.net/
    mail: ger@hobbelt.com
    mobile: +31-6-11 120 978
    --------------------------------------------------
    __________________________________________________ ____________________
    OpenSSL Project http://www.openssl.org
    User Support Mailing List openssl-users@openssl.org
    Automated List Manager majordomo@openssl.org


+ Reply to Thread