addOns/network/src/main/java/org/zaproxy/addon/network/ExtensionNetwork.java
/**
     * Writes the Root CA certificate to the specified file in PEM format, suitable for importing
     * into browsers.
     *
     * @param path the path the Root CA certificate will be written to.
     * @throws IOException if an error occurred while writing the certificate.
     */
Writes the Root CA certificate to the specified file in PEM format, suitable for importing
into browsers.

@param path the path the Root CA certificate will be written to.
@throws IOException if an error occurred while writing the certificate.
Writes the Root CA certificate to the specified file in PEM format suitable for importing into browsers . @param path the path the Root CA certificate will be written to . @throws IOException if an error occurred while writing the certificate .
public void writeRootCaCertAsPem(Path path) throws IOException {
        try {
            CertificateUtils.keyStoreToCertificatePem(getRootCaKeyStore(), path);
        } catch (Exception e) {
            throw new IOException(e);
        }
    }
public void writeRootCaCertAsPem ( Path path ) throws IOException { try { CertificateUtils . keyStoreToCertificatePem ( getRootCaKeyStore ( ) , path ) ; } catch ( Exception e ) { throw new IOException ( e ) ; } }
Writes the Root CA certificate to the specified file in PEM format, suitable for importing
 into browsers.
Writes the Root CA certificate to the specified file in PEM format suitable for importing into browsers .