Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure out how to import keys using PEM format #8

Open
RangerMauve opened this issue Jan 22, 2022 · 2 comments
Open

Figure out how to import keys using PEM format #8

RangerMauve opened this issue Jan 22, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@RangerMauve
Copy link
Owner

Based on work in the IPFS gateway

@RangerMauve RangerMauve added the enhancement New feature or request label Mar 11, 2022
@RangerMauve
Copy link
Owner Author

On approach that's based on what @resession in bt-fetch is to specify the key info inside the authorization header when performing the POST or PUT request.

@RangerMauve
Copy link
Owner Author

Some other thoughts. At the moment we generate keys using POST ipns://localhost?key=whatever. Maybe this could be extended with having the PEM data inside the body?

Would also be good to think about how to export. Maybe GET ipns://localhost?key=whatever&format=pem or specifying something in the Accept header? Might be good to put this behind a user prompt to make it harder for malicious websites to steal your keys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant