Skip to content

NIO: example for using secure connection (cert from string, adding metadata) #697

@ealymbaev

Description

@ealymbaev

Question Checklist

Question Description

I am trying to use new nio branch of grpc-swift repo for communicating with LND and have encountered several issues:

  • I could not find a way to set TLS certificate from a string (not from file). Apple Nio SSL has NIOSSLCertificate class, but is is able to init with file path and byte array only. In old implementation of grpc-swift we could init client with certificates string argument.

  • In old implementation of grpc-swift I could also set Metadata to connection. I need it to set macaroons headers for authentication. In new nio branch I could not find a way to set metadata.

It would be great if you could provide some examples for setting options described above.

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