> [[email protected] - Fri Oct 30 10:05:10 2009]:
> 
> My problem is simple.  BSD doesn't ship with a base64 binary, so 
> I'm using the one in openssl.  Encoding works fine, but decoding does not.
> 
> This is my DNS cert record:
> 
> FMIGMFRUkpXzNJA3//u+WjBiS7JJaHR0cDovL3ByaW1lLmd1c2hpLm9y 
> Zy9kYW5tLnB1YmtleS50eHQ=
> 
> base64 -d -i decodes it correctly:
> 
> 00000000  14 c2 06 30 54 54 92 95  f3 34 90 37 ff fb be 5a 
> |...0TT...4.7...Z|
> 00000010  30 62 4b b2 49 68 74 74  70 3a 2f 2f 70 72 69 6d 
> |0bK.Ihttp://prim|
> 00000020  65 2e 67 75 73 68 69 2e  6f 72 67 2f 64 61 6e 6d 
> |e.gushi.org/danm|
> 00000030  2e 70 75 62 6b 65 79 2e  74 78 74                 |.pubkey.txt|
> 0000003b
> 
> echoing the above string (even with echo -n, even with spaces 
> stripped) to openssl base64 -d yields nothing.
> 

If you are stripping newline characters and presenting that as one
single line you need the -A option.

Steve.
-- 
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to