Obtain public key

Guus Sliepen guus at tinc-vpn.org
Wed Jan 14 14:59:40 CET 2015


On Wed, Jan 14, 2015 at 12:28:00PM +0000, Martin wrote:

> 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

Ed25519 keys are not supported by OpenSSL, and are generated completely
by tinc itself. The format of ed25519_key.priv is also not a standard
format. The public key can be extracted from it though, I'll add an
option to the tinc CLI to do this, just in case someone accidentily
deletes the public key. However, you can already use the CLI to extract
your own public key:

tinc -n <netname> get Ed25519PublicKey

-- 
Met vriendelijke groet / with kind regards,
     Guus Sliepen <guus at tinc-vpn.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20150114/13265e66/attachment.sig>


More information about the tinc mailing list