Can i install and use .pem (certificate ) file after flash esp32?

electronic4706
Posts: 5
Joined: Mon May 10, 2021 10:59 am

Can i install and use .pem (certificate ) file after flash esp32?

Postby electronic4706 » Thu May 23, 2024 4:06 pm

Hello ,
I hope everybody is fine.
Sorry, I need help.
I focused the mqtt ssl example project been ready in esp-idf . However I can see I must add .pem file before compile and I must add target_add_binary_data command in CMake file.
However,I want to change .pem(certificate) file when i want it after device is ready to work.
Is it possible ?
If it is possible, I think that i must use file server. However , how it chose file and install without need compile again ? Can it embed .pem file through restart or any way but still if is necessary, after i add .pem file in file server in ESP32?
Can any body help me about this idea?
thanks already...
Kayip-Adam

ESP_Sprite
Posts: 9619
Joined: Thu Nov 26, 2015 4:08 am

Re: Can i install and use .pem (certificate ) file after flash esp32?

Postby ESP_Sprite » Fri May 24, 2024 2:53 am

Seems you accidentally had your caps lock enabled when typing the title. I fixed it for you.

electronic4706
Posts: 5
Joined: Mon May 10, 2021 10:59 am

Re: Can i install and use .pem (certificate ) file after flash esp32?

Postby electronic4706 » Fri May 24, 2024 6:04 am

ESP_Sprite wrote:
Fri May 24, 2024 2:53 am
Seems you accidentally had your caps lock enabled when typing the title. I fixed it for you.
Thanks to fix if it require,

I think it is rule for forum. Sorry i didn't know it.
Have you any suggestion for my topic I'm curious about. I see you are administrator. So i think you may knowledge something about ESP. you can know somethings about this topic.

Thanks already.
Kayip-Adam

MicroController
Posts: 1605
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Can i install and use .pem (certificate ) file after flash esp32?

Postby MicroController » Fri May 24, 2024 6:25 pm

Among other options, you can store the certificate in NVS, see e.g. https://simplyexplained.com/blog/esp-id ... partition/

electronic4706
Posts: 5
Joined: Mon May 10, 2021 10:59 am

Re: Can i install and use .pem (certificate ) file after flash esp32?

Postby electronic4706 » Sat May 25, 2024 1:43 pm

MicroController wrote:
Fri May 24, 2024 6:25 pm
Among other options, you can store the certificate in NVS, see e.g. https://simplyexplained.com/blog/esp-id ... partition/
Hi,
Thank you very much for link. I liked it. It shown very clearly.
I read it it is you full for OTA. I would also like that i will learn OTA in short time.
However, actually my problem is that i don't want build and flash again after i put ".pem " file in folder directory.
You assume it please.
you prepared web server on ensp32. you connected web page on it. you see area to fill for .pem file. you can draged&droped file to this area. you assume just a file enough for certificate. Ok it must be everything it this! esp32 will use the new .pem file that you installed yet, when you restart your esp32.
I hope I could explain my problem clear.
Can you explain shortly how can you prepare to do list ?
Thanks...
Kayip-Adam

Who is online

Users browsing this forum: Gaston1980, Majestic-12 [Bot] and 78 guests