On Tue, Sep 9, 2014 at 8:49 PM, Dave Thompson <dthomp...@prinpay.com> wrote:
> ...
>
> I have and know of no software to create encrypted legacy-format privatekeys
> other than OpenSSL itself which always writes 64, so I never encountered
> this before.
>
You can use Crypto++ with the PEM Pack
(http://www.cryptopp.com/wiki/PEM_Pack). Its an add-on, and not part
of the library proper. Just unzip it into the Crypto++ sources and
build the library as usual (the makefile will pick up the new sources
automatically).

The line length is hard coded at 64 per RFC 1421, but it can be
changed. To change it, open pem-com.h (PEM common) and change the
following on line 87:

// 64-character line length is required by RFC 1421 and used by OpenSSL.
static const unsigned int OPENSSL_B64_LINE_BREAK = 64;

Jeff
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to