Skip to content
This repository was archived by the owner on Jun 17, 2021. It is now read-only.
This repository was archived by the owner on Jun 17, 2021. It is now read-only.

support SSL? #144

@Arco1ris

Description

@Arco1ris

When trying to connect to the collector, The agent needs to add a certificate, so I made the following changes

RemoteClient.prototype.connectRemote = function(directServer) {
    const filePath = path.join(__dirname, "../ca.crt");
    const caFile = fs.readFileSync(filePath);
    const channelCreds = grpc.credentials.createSsl(caFile);
    this._managemenet = new ManagementService.ManagementServiceClient(directServer, channelCreds);
    this._tracerSender = new TraceSendService.TraceSegmentReportServiceClient(directServer, grpc.credentials.createInsecure());
};

After starting the project, I found that Endpoint information is Empty。

I want to confirm two questions:

  1. If i want to add a certificate, is it correct? If not, how should it be added?
  2. Why the Endpoint is empty, If it is not caused by the certificat, what could it be?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions