Hello!
I am trying to perform the particle keys server and particle keys doctor commands with one of our Electrons.
We have been having stability problems with network connections of some of our several electrons we have in use.
I was hoping running the keys procedure and that it would help with those issues.
Below is the readout from my command window, I am using a windows 7 OS.
I have OpenSSL installed so I am not sure what the problem is.
C:\Users\Bjorgvin>particle keys server
Found DFU device 2b04:d00a
checking file C:\Users\Bjorgvin\AppData\Roaming\npm\node_modules\particle-cli\ke
ys\ec.pub.der
spawning dfu-util -d 2b04:d00a -a 1 -i 0 -s 3298 -D C:\Users\Bjorgvin\AppData\Ro
aming\npm\node_modules\particle-cli\keys\ec.pub.der
dfu-util 0.9
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
Opening DFU capable USB deviceā¦
ID 2b04:d00a
Run-time device DFU version 011a
Claiming USB DFU Interfaceā¦
Setting Alternate Setting #1 ā¦
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
DfuSe interface name: "DCT Flash "
Downloading to address = 0x00000ce2, size = 320
Download [=========================] 100% 320 bytes
Download done.
File downloaded successfully
Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release!!!
Okay! New keys in place, your device will not restart.
C:\Users\Bjorgvin>particle keys doctor 360024001451343334363036
Found DFU device 2b04:d00a
Found DFU device 2b04:d00a
Error creating keysā¦ Error: Command failed: C:\Windows\system32\cmd.exe /s /c
"openssl ecparam -name prime256v1 -genkey -out 360024001451343334363036_ec_new.p
em"
āopensslā is not recognized as an internal or external command,
operable program or batch file.
Make sure your device is in DFU mode (blinking yellow), and that your computer i
s online.
Error - Error: Command failed: C:\Windows\system32\cmd.exe /s /c āopenssl ecpara
m -name prime256v1 -genkey -out 360024001451343334363036_ec_new.pemā
āopensslā is not recognized as an internal or external command,
operable program or batch file.
@TreyLocos, Openssl is typically installed in the root directory of the system drive in windows. Did you install CLI using the Windows Installer provided by Particle?
SOLUTION:
I had the same problem (particle doctor couldnāt find the ssl command which it needs).
I looked where the Windows installation placed the ssl command, then just ran the doctor command from there
CD C:\OpenSSL-Win32\bin
particle doctor
Not as elegant as setting the PATH variable properly but it worked.
thanks, i had this same error with particle doctor, i reinstalled the CLI but the problem came back. i did the CD command above and particle doctor worked. my rapildy flashing cyan light is now breathing a sigh of relief.
that particle doctor is misleading because sometimes it doesnt give any errors but doesnt fix the problem you have to keep restarting to get it to work