Skip to content

API clients only support one server certificate at a time #85

@mrmonkington

Description

@mrmonkington

I have written a simple python API client app to look up historic flowcell check results across multiple P2-solo hosts.

Unfortunately each of these minknow instances seems to use a secure channel with its own self-signed certificates and the python API client library only allow one ca.crt to be read at runtime via the MINKNOW_TRUSTED_CA environment variable.

According to #77 these certificates are regenerated at boot and daily (though only picked up when Minknow service restarts), and seems to ignore the application_conf configured cert path. This isn't very easy to unpick for anybody starting to write remote API client tools! (Please can you improve the docs for remote connections?)

The quickest fix I can see is to replace the certificates with my own single cert shared across all instances and clients and disable rpc-certs-gend.service. Is that what ONT recommend or are they likely to change things again before #77 is fixed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions