Skip to content

Commit

Permalink
Merge pull request #9 from kasperl/install-common-certs
Browse files Browse the repository at this point in the history
Install common certificates
  • Loading branch information
Kasper Lund authored Apr 20, 2024
2 parents 51dce18 + 85a2cc6 commit fb720f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/connect.toit
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
// Use of this source code is governed by an MIT-style license that can be
// found in the LICENSE file.
import mqtt
import net
import tls
import certificate-roots

import .client
import .service show CONFIG-DEVICE-ID CONFIG-DEVICE-TOKEN

Expand Down
3 changes: 2 additions & 1 deletion src/service.toit
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ main:
defines := assets.decode.get defines-key
--if-present=: tison.decode it
--if-absent=: {:}

certificate-roots.install-common-trusted-roots
service := QubitroServiceProvider logger defines
service.install
logger.info "service running"
Expand Down Expand Up @@ -103,7 +105,6 @@ class QubitroMqttModule implements NetworkModule:
transport = mqtt.TcpTransport.tls
--host=HOST
--port=PORT
--root-certificates=[ certificate-roots.BALTIMORE-CYBERTRUST-ROOT ]
client = mqtt.FullClient
--logger=logger_
--transport=transport
Expand Down

0 comments on commit fb720f5

Please sign in to comment.