Skip to content
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.

Add PEM to DER converter tool to get certificates in HEX format #3

Closed
msentuerk opened this issue Jul 24, 2021 · 1 comment
Closed
Labels
Not this Library Issue not caused by this Library Support Library support

Comments

@msentuerk
Copy link

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when searching for a toll and still searching.
I had the problem to convert existing PEM certificates (keys also) to DER format. Thanks there are online web tools for it but it gives it all the time in DER file format which is encrypted. So, I have the problem to get the DER certs in HEX specially in uint8_t format.

Describe the solution you'd like
Maybe there is a tool (I am also searching for it) which can convert PEM -> DER -> uint8_t

Describe alternatives you've considered
DER -> uint8_t

I hope this feature will be added. I am currently searching for this kind of tool. When I find one, I will test it and give a feedback to it.

@khoih-prog
Copy link
Owner

You can use hexdump / xxd command in Linux / Ubuntu to convert from DER binary format to ASCII uint8_t text format. Check xxd command

xxd -i server.der > server_der.h

To convert from CRT to DER, have a look at openssl command or openssl

openssl x509 -in server.crt -outform der -out server.der

For Windoze, search for similar commands.

I'm closing this now as this has nothing to do with this library. I suggest you post on Arduino forum to ask for help / input and to have better help and reach to many more people.

Using SSL requires better knowledge, time and skills.

Good Luck,

@khoih-prog khoih-prog added Not this Library Issue not caused by this Library Support Library support labels Jul 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Not this Library Issue not caused by this Library Support Library support
Projects
None yet
Development

No branches or pull requests

2 participants