Add automatic formatting for keys and certificates.