Can't upload certificate to AWS

919

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
Share:
919

Related videos on Youtube

Frank
Author by

Frank

Updated on September 18, 2022

Comments

  • Frank
    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 of 1000000/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 set SPI_CLOCK directly to 16000000/6?

    Any help will be appreciated. Thanks!

    • Admin
      Admin over 10 years
      Test that the uploaded cert is correct (linebreaks?): wget Downloads/mysite/mysite.crt -O webcert.crt and then openssl x509 -in webcert.crt -text -noout
    • Admin
      Admin over 10 years
      Yup, looks good.
    • Admin
      Admin over 10 years
      try adding file:// before the file names
    • Admin
      Admin over 10 years
      Make that an answer so I Can vote for it =)
    • Admin
      Admin over 10 years
      sure, glad I could help!
    • Frank
      Frank over 4 years
      Just to clarify, I am only planning on using the bootloader code for burning ATmega 8 chips.
    • AterLux
      AterLux over 4 years
      I cannot understand what stops you from programming the flash on 1000000/6 baud rate? Surely 16MHz CPU will accept it.
    • Frank
      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
      AterLux over 4 years
      I'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
      Frank over 4 years
      All right, thanks for the clarification!
  • Leland Richardson
    Leland Richardson over 9 years
    This is what it was for me. What a terribly unhelpful error for the AWS CLI to throw!
  • Nuriel
    Nuriel about 9 years
    this is the only place i could find this answer. thanks!
  • markthethomas
    markthethomas about 9 years
    Seriously the least helpful error message I've seen in a while.
  • Petter Kjelkenes
    Petter Kjelkenes over 8 years
    Worked for me as well.
  • Trip
    Trip over 8 years
    I have it beginning with -----BEGIN RSA PRIVATE KEY-----, and its been outputted as a .pem and for sure RSA, but it still returns the same error. I generated the key with openssl genrsa -des3 -out server.pass.key 2048 and openssl rsa -in server.pass.key -out server.key