Implement ca2json converter

This script converts a file containing CA certificates (X.509) into
JSON.

The result is needed for implementing #3.