Can't upload certificate to AWS
Solution 1
Add a file://
before the file names.
Solution 2
I've seen this when the key wasn't in RSA format. If you check the header for your key and it is -----BEGIN PRIVATE KEY-----
instead of -----BEGIN RSA PRIVATE KEY-----
that's probably your problem. You can get the key into RSA with:
openssl rsa -in my-private-key.pem > private-rsa-key.pem
Related videos on Youtube
Frank
Updated on September 18, 2022Comments
-
Frank almost 2 years
I have an Arduino Uno R3 (actually, distributed from Elegoo but has the same exact components) and I thought about burning the ATMega 8 chip on it with a bootloader, using the "Arduino as ISP" feature on the Arduino IDE.
I looked at the specs for the ATMega 8 chip, and I would like to just ask - everywhere I've looked online, it says the default CPU clock speed is 16MHz, which makes sense because of the crystal clock onboard running at 16MHz. However, I'm not sure the code I have already written is safe:
#define SPI_CLOCK (16000000/6) // Internal clock speed 16 MHz for Arduino UNO.
I think that this code will be fine considering the specs. The example told me to set
SPI_CLOCK
to a value of1000000/6
, which slow enough for an ATtiny85 (@ 1 MHz), but since I want to use the full functionality of the crystal I have onboard and want a faster clock speed, is it safe to setSPI_CLOCK
directly to16000000/6
?Any help will be appreciated. Thanks!
-
Admin over 10 yearsTest that the uploaded cert is correct (linebreaks?):
wget Downloads/mysite/mysite.crt -O webcert.crt
and thenopenssl x509 -in webcert.crt -text -noout
-
Admin over 10 yearsYup, looks good.
-
Admin over 10 yearstry adding
file://
before the file names -
Admin over 10 yearsMake that an answer so I Can vote for it =)
-
Admin over 10 yearssure, glad I could help!
-
Frank over 4 yearsJust to clarify, I am only planning on using the bootloader code for burning ATmega 8 chips.
-
AterLux over 4 yearsI cannot understand what stops you from programming the flash on 1000000/6 baud rate? Surely 16MHz CPU will accept it.
-
Frank over 4 years@AterLux Okay, but will setting the baud rate at that value affect the execution speed of sketches that I upload to the chip? Like with time-sensitive functions like delay() or tone()?
-
AterLux over 4 yearsI'm not sure what you're talking about exactly. Setting SPI clock speed on the programmer only affects how fast you can flash the device. It does not change how the flashed code works
-
Frank over 4 yearsAll right, thanks for the clarification!
-
-
Leland Richardson over 9 yearsThis is what it was for me. What a terribly unhelpful error for the AWS CLI to throw!
-
Nuriel about 9 yearsthis is the only place i could find this answer. thanks!
-
markthethomas about 9 yearsSeriously the least helpful error message I've seen in a while.
-
Petter Kjelkenes over 8 yearsWorked for me as well.
-
Trip over 8 yearsI have it beginning with
-----BEGIN RSA PRIVATE KEY-----
, and its been outputted as a.pem
and for sureRSA
, but it still returns the same error. I generated the key withopenssl genrsa -des3 -out server.pass.key 2048
andopenssl rsa -in server.pass.key -out server.key