Skip to content

Add dynamic SSL certificate support #24

Description

@mdtanrikulu

For new created accounts we can make a call to the "eth.link" gateway to create SSL certificate for each subdomain.
An example how it should be done;

fetch("https://eth.link/names/mdt.almonit.eth.link", {
  method: "PUT",
  mode: "cors",
  headers: {
    Origin: "*",
    "Content-Type": "text/plain",
    "Access-Control-Request-Method": "PUT",
  },
})
  .then((req) => {
    console.log(req);
  })
  .catch((e) => {
    console.log(e);
  });

p.s. = Instead of having this centralized call in dlog library, I am in favor of having an optional service outside of our architecture. We can watch our contract event for fresh accounts and trigger this bit.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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