If you have the certificates as .pem files, you need to load these files, take the
information between the lines beginning with ----, remove the newlines from it
so you have raw base64, and then feed it into atob as above.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Ok, just done. For instance the following now works:
If you have the certificates as
.pem
files, you need to load these files, take theinformation between the lines beginning with
----
, remove the newlines from itso you have raw base64, and then feed it into
atob
as above.This will be in http://www.espruino.com/binaries/git/commits/master/ - just give it an hour for the latest build to appear in there.