trimstray / mkchain

Open source tool to help you build a valid SSL certificate chain.
GNU General Public License v3.0
360 stars 53 forks source link

default _system_ca_path won't work on FreeBSD and change not taken into account #6

Open p4tpr0 opened 6 years ago

p4tpr0 commented 6 years ago

The default value for _system_ca_path set in src/init is not right for FreeBSD. Changing this value with another path is not taken into account because code has hard-coded values:

$ sslmerge -i foobar.crt -o foobar-full.crt find: /etc/ssl/certs/: No such file or directory sed: 1: "$a-----END CERTIFICATE- ...": command a expects \ followed by text [!] bad certificate (maybe broken): foobar.crt

More importantly, upon error, the certificate file used as input is cleared (content erased).

trimstray commented 6 years ago

Great job!

I create environment on freebsd and I will try to generate this error.