feeding a private rsa key through the shell to get the public

Dr. Hawkins dochawk at gmail.com
Sat May 4 17:46:24 CDT 2013


On Sat, May 4, 2013 at 3:24 PM, Alex Tweedly <alex at tweedly.net> wrote:

> put the shell of ("echo " & fld privateKey & " | openssl rsa -pubout")
>

that produces,

-----BEGIN RSA PRIVATE KEY-----
/bin/sh: line 2:
MIIJKQIBAAKCAgEAqtf05M03fM9BaOhdaY1C+dfp6D1dHDa9pJ7RBgcYd57n3AiY: command
not found
/bin/sh: line 3:
MF/yA1y8l4+OCJG8tBmgeRJweNqqUrMOh33HDkY52088vVLJLmExHv56hTqNblFw: No such
file or directory

The multi-line key isn't getting quoted to echo, and I've tried both single
and double quotes on this.

I note that the file when I dump the key field uses ^M rather than ^J.


-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462


More information about the use-livecode mailing list