A few build system questions

John-Mark Gurney jmg at funkthat.com
Sun Aug 12 23:58:03 UTC 2018


Eric McCorkle wrote this message on Thu, Aug 02, 2018 at 22:29 -0400:
> For future reference, this seems to be more or less what I'm after:
> 
> for f in /etc/trust/root/certs/*.pub.pem; do echo -n "static const char
> `basename ${f%%.*}`_data[] = {"; openssl x509 -outform DER -in
> /etc/trust/root/certs/local.pub.pem |  hexdump -v -e '1/1 "0x%02x,"';
> echo "};"; done

There's also file2c that does the conversion for you.

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20180812/172b5e1f/attachment.sig>


More information about the freebsd-hackers mailing list