Mono for Linux steps

  • You must complete the following steps in a root shell.
  • Install either the mono-devel or mono-complete package. For instructions, see the information on the Mono Project website. Either Mono package will allow you to complete the steps below.
  1. Open Terminal and change directories to the location where your certificate is stored.
    Note:
    • The certificate must be in Privacy-Enhanced Mail (PEM) format.
    • The certificate required is the one that was used to sign the certificate and the key for your CylanceHYBRID application.
  2. After you change directories, enter the cert-sync command:

    cert-sync <YOURCERTIFICATE>

    where YOURCERTIFICATE is your certificate.

    Example Output: cert-sync rootCA.crt


    Example output file of the cert-sync command
  3. Mono stores the synced certificate to /usr/share/.mono/new-certs/Trust.
    Note: When you install Mono for Linux, Mono automatically inserts its own certificates into the /new-certs/Trust directory.

    To locate your target certificate, you can use ls -ltr to display the latest modified file at the bottom of the Terminal output. You can use your method of choice to differentiate your target certificate from the other previously inserted certificates.

    Example:The certificate highlighted in the red box is the certificate that was synchronized using the above steps. All other certificates were inserted upon installation of Mono.

    Image highlights the certificate that was synchronized using the above procedure

  4. To confirm that a Mono certificate is the correct certificate, view the contents of the certificate file using the following command:
    CODE
    cat /usr/share/.mono/new-certs/Trust/<filename>
    For example:
    CODE
    cat /usr/share/.mono/new-certs/Trust/44ff1262.0
    Confirm that the subject and the fingerprint in the output match the subject and the fingerprint or thumbprint of the correct CA certificate.
  5. In each Linux device that will use the application, create the following directory:
    CODE
    /usr/share/.mono/new-certs/Trust

    Note that there is a period (.) before "mono".

    This step does not install Mono on the target machine; you are just manually creating the directory.

    Example method to create the directory:

    CODE
    mkdir -p /usr/share/.mono/new-certs/Trust
  6. For all Linux devices, copy the synced certificate to the directory that you created in the previous step.