Skip to content

Wrong generation of certificates #77

@Strexas

Description

@Strexas

Good afternoon,

Today I updated MinKnow and noticed that I can no longer create simulated minion with script located in /opt/ont/minknow/bin on my Ubuntu 22.04 Computer.

It was giving such an error

WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1749043801.666635    9988 ssl_transport_security.cc:1665] Handshake failed with error SSL_ERROR_SSL: error:0400006b:RSA routines:OPENSSL_internal:BLOCK_TYPE_IS_NOT_01: certificate signature failure
I0000 00:00:1749043801.672114    9991 ssl_transport_security.cc:1665] Handshake failed with error SSL_ERROR_SSL: error:0400006b:RSA routines:OPENSSL_internal:BLOCK_TYPE_IS_NOT_01: certificate signature failure
Unable to connect to MinKNOW at localhost - <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNAVAILABLE
	details = "failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:9502: Ssl handshake failed (TSI_PROTOCOL_FAILURE): SSL_ERROR_SSL: error:0400006b:RSA routines:OPENSSL_internal:BLOCK_TYPE_IS_NOT_01: certificate signature failure"
	debug_error_string = "UNKNOWN:Error received from peer  {created_time:"2025-06-04T16:30:01.672243306+03:00", grpc_status:14, grpc_message:"failed to connect to all addresses; last error: UNKNOWN: ipv4:127.0.0.1:9502: Ssl handshake failed (TSI_PROTOCOL_FAILURE): SSL_ERROR_SSL: error:0400006b:RSA routines:OPENSSL_internal:BLOCK_TYPE_IS_NOT_01: certificate signature failure"}"

As Windows version works just fine, I tried to dig myself. I uninstalled all MinKnow related files and had clean installation.

I found out that newest installation of MinKnow on Ubuntu 22.04 creates /data/rpc-certs folder in root of file system. I compared ca.crt that were generated in /data/rpc-certs/minknow/ and in /var/lib/minknow/data/rpc-certs/minknow and they differ.

After I removed files inside /data/rpc-certs/minknow/ and put files from /var/lib/minknow/data/rpc-certs/minknow/ script started to work without problems.

I kindly ask you to fix this bug to avoid additional movement of files after installation. Thank you.

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