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

support SSL? #144

Open
Arco1ris opened this issue Dec 29, 2020 · 0 comments
Open

support SSL? #144

Arco1ris opened this issue Dec 29, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Arco1ris
Copy link

Arco1ris commented Dec 29, 2020

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?
@wu-sheng wu-sheng added the enhancement New feature or request label Dec 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants