Photon fails cloud connect

I have several Photons and all are working as expected on this network/router less one. This Photon was working fine September 2017 and then sat unused until yesterday. When I powered it up yesterday it failed to connect and was fast blinking cyan with intermittent red flash. I assume I have a corrupt key but have had no luck resolving that. Feedback welcomed.

I tested the following;
uninstalled CLI reinstalled new (win7 installer)
Particle update, success, still flashing cyan/intermittent red.
Particle doctor [failed at very end with “New key created! The Doctor didn’t complete successfully. undefined”].
Firmware 0.7.0, firmware flashed from CLI (part 1 & part 2), success, still did not connect to cloud.
reflashed bootloader-0.7.0-photon

flashed clouddebug.bin from rickkas7;
Opening serial monitor for com port: "COM17"
Serial monitor opened successfully:
configured credentials:
ssid=Pupcreek security=wpa2 cipher=1
available access points:
SSID=Pupcreek_r security=wpa2 channel=5 rssi=-65
SSID=Pupcreek security=wpa2 channel=5 rssi=-57
connecting to WiFi
connected to WiFi!
localIP=192.168.1.20
subnetMask=255.255.255.0
gatewayIP=192.168.1.1
dnsServerIP=0.0.0.0 (often 0.0.0.0)
dhcpServerIP=0.0.0.0 (often 0.0.0.0)
ping gateway=1
ping addr 8.8.8.8=1
device.spark.io=34.207.234.253
connected to device server CoAP (testing connection only)
connecting to cloud
hung at this point

particle keys server, OK new keys in place.
particle keys doctor [my device ID]
New Key Created!
Make sure your device is in DFU mode (blinking yellow), and that your computer i
s online.
Error: Error writing key to device… Error saving key from device… Unable to
generate public key from the key downloaded from the device. This usually means
you had a corrupt key on the device. Error: Command failed: C:\Windows\system32
cmd.exe /s /c "openssl rsa -in backup_rsa_[my device]rsa_new.der -
inform DER -pubout -out backup_rsa
[my device]_rsa_new.pub.pem"
unable to load Private Key
8520:error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag:crypto\asn1
\tasn_dec.c:1112:
8520:error:0D06C03A:asn1 encoding routines:asn1_d2i_ex_primitive:nested asn1 err
or:crypto\asn1\tasn_dec.c:676:
8520:error:0D08303A:asn1 encoding routines:asn1_template_noexp_d2i:nested asn1 e
rror:crypto\asn1\tasn_dec.c:609:Field=version, Type=RSA
8520:error:04093004:rsa routines:old_rsa_priv_decode:RSA lib:crypto\rsa\rsa_amet
h.c:72:
8520:error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag:crypto\asn1
\tasn_dec.c:1112:
8520:error:0D06C03A:asn1 encoding routines:asn1_d2i_ex_primitive:nested asn1 err
or:crypto\asn1\tasn_dec.c:676:
8520:error:0D08303A:asn1 encoding routines:asn1_template_noexp_d2i:nested asn1 e
rror:crypto\asn1\tasn_dec.c:609:Field=version, Type=PKCS8_PRIV_KEY_INFO

Try running particle doctor from a non-system directory.
Maybe it’s a permission problem to generate the key file inside C:\Windows\system32

You can also try to send the keys “manually” this way

particel keys server
particle keys doctor <enterYourDeviceID>

Thank you for the prompt response. I tested a non-system dir for particle doctor, failed as before. Also tested particle key server and doctor same, Error: Error writing key to device… Error saving key from device.