particle-iot/spark-cli

`spark keys save` writes the PRIVATE key to core.pub.pem

Closed this issue · 2 comments

running spark keys save 320020001847333531323135 against a photon gives

running dfu-util -d 2b04:d006 -a 1 -s 34:612 -U 320020001847333531323135
running openssl rsa -in 320020001847333531323135 -inform DER -pubout  -out 320020001847333531323135.pub.pem

The devices spec lists only the location for the private key.

@m-mcgowan, isn't it reading the private key and generating the pub.pem?

yep. just realized this too. It's there on the openssl line.