Hi guys,
I cannot make it work. let me share the steps i followed.
This is the existing device
This is the cert I created using:
tedge cert create --device-id "atc-poc-remoteConnection-102"
Device certificate: /etc/tedge/device-certs/tedge-certificate.pem
Subject: CN=atc-poc-remoteConnection-102, O=Thin Edge, OU=Test Device
Issuer: CN=atc-poc-remoteConnection-102, O=Thin Edge, OU=Test Device
Valid from: Tue, 11 Mar 2025 12:30:29 +0000
Valid up to: Wed, 11 Mar 2026 12:30:29 +0000
Thumbprint: A18EE0CB383C1663B1CFC75B3F179B52C91F1BE4
Uploaded on Cumulocity:
But when I hit
sudo tedge connect --debug c8y
I get:
2025-03-12T12:37:16.89129502Z DEBUG tedge_config::tedge_config_cli::tedge_config_location: Loading configuration from "/etc/tedge/tedge.toml"
Connecting to Cumulocity with config:
device id: atc-poc-remoteConnection-102
cloud profile: <none>
cloud host: t1523338844.cumulocity.com:8883
certificate file: /etc/tedge/device-certs/tedge-certificate.pem
bridge: mosquitto
service manager: systemd
mosquitto version: 2.0.11
2025-03-12T12:37:17.103450393Z DEBUG rustls::client::hs: No cached session for DnsName("t1523338844.cumulocity.com")
2025-03-12T12:37:17.103758111Z DEBUG rustls::client::hs: Not resuming any session
2025-03-12T12:37:17.153300029Z DEBUG rustls::client::hs: Using ciphersuite TLS13_AES_256_GCM_SHA384
2025-03-12T12:37:17.153493702Z DEBUG rustls::client::tls13: Not resuming
2025-03-12T12:37:17.154174766Z DEBUG rustls::client::tls13: TLS1.3 encrypted extensions: [Unknown(UnknownExtension { typ: EllipticCurves, payload: 0014001d001700180019001e01000101010201030104 })]
2025-03-12T12:37:17.154228434Z DEBUG rustls::client::hs: ALPN protocol is None
2025-03-12T12:37:17.154264894Z DEBUG rustls::client::tls13: Got CertificateRequest CertificateRequestPayloadTLS13 { context: , extensions: [SignatureAlgorithms([ECDSA_NISTP256_SHA256, ECDSA_NISTP384_SHA384, ECDSA_NISTP521_SHA512, ED25519, ED448, RSA_PSS_SHA256, RSA_PSS_SHA384, RSA_PSS_SHA512, Unknown(2057), Unknown(2058), Unknown(2059), RSA_PKCS1_SHA256, RSA_PKCS1_SHA384, RSA_PKCS1_SHA512]), Unknown(UnknownExtension { typ: SignatureAlgorithmsCert, payload: 001c040305030603080708080804080508060809080a080b040105010601 })] }
2025-03-12T12:37:17.15432177Z DEBUG rustls::client::common: Attempting client auth
Creating device in Cumulocity cloud... âś—
error: Connection error while creating device in Cumulocity: Connection refused, return code: `NotAuthorized`
What am i missing?
Edit:
Note that the used to send data to the existing device using an authentication based on username-password not on cert like im trying to do with thin edge