certifi / erlang-certifi

SSL Certificates for Erlang
Other
131 stars 33 forks source link

Generate certificates using a parse transform #17

Closed josevalim closed 7 years ago

josevalim commented 7 years ago

With the parse_transform, we can encode each certificate as a binary with a single element which is a list. This reduces the size of the beam file in more than 50%, going from 620Kb to 250kb. It also has the benefit of no longer requiring a Makefile, which improves the compatibility with Windows and removes the need to generate stray .erl files.

We can only do this trick in a parse transform which is also the mechanism we use to dynamically generate the cacerts contents.

benoitc commented 7 years ago

@josevalim thanks for the patch. applied in latest master.