Obtain public key

Michael Munger michael at highpoweredhelp.com
Wed Jan 14 15:07:03 CET 2015


Without seeing your private key (I am assuming it is a private key with a PEM format…) you can use the syntax described here:
http://stackoverflow.com/questions/5244129/use-rsa-private-key-to-generate-public-key

See the first answer where they are specifying the “in” value.

Michael Munger, dCAP, MCPS, MCNPS, MBSS
High Powered Help, Inc.
Microsoft Certified Professional
Microsoft Certified Small Business Specialist
Digium Certified Asterisk Professional
michael at highpoweredhelp.com<mailto:michael at highpoweredhelp.com>

From: tinc [mailto:tinc-bounces at tinc-vpn.org] On Behalf Of Martin
Sent: Wednesday, January 14, 2015 7:28 AM
To: tinc at tinc-vpn.org
Subject: Obtain public key

Is there any way to obtain the public key from the private key?
I know it's in host file however for the purpose of this message I need to be able to generate it on the command line.
I tried

openssl ec < ed25519_key.priv

I get an error

read EC key
unable to load Key
140092556813984:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:703:Expecting: ANY PRIVATE KEY

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20150114/4505cef2/attachment.html>


More information about the tinc mailing list