frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

What interesting things low spending people do, that others know nothing about?

8•evolve2k•46m ago•5 comments

Big Beautiful Bill R&D Tax: Will tech go on a hiring spree again?

5•jbverschoor•4h ago•7 comments

I'm Peter Roberts, immigration attorney, who does work for YC and startups. AMA

251•proberts•2d ago•446 comments

Ask HN: What's your go-to message queue in 2025?

56•enether•4d ago•92 comments

Ask HN: Do people actually pay for small web tools?

16•scratchyone•1d ago•15 comments

Ask HN: Best on device LLM tooling for PDFs?

4•martinald•17h ago•1 comments

Ask HN: Moving to London from California

7•siamese_puff•12h ago•9 comments

Ask HN: How are you acquiring your first hundred users?

566•amanchanda•6d ago•350 comments

Ask HN: Conversational AI to Learn a Language

13•edweis•2d ago•5 comments

Ask HN: Anyone working in traditional ML/stats research instead of LLMs?

20•itsmekali321•2d ago•10 comments

Is current state of querying on observability data broken?

12•pranay01•1d ago•0 comments

Ask HN: Email Provider for Main Account?

23•agent008t•4d ago•25 comments

Xray: A full-behavior-chain anti-malware system built in Go by a student

6•tangtian•2d ago•0 comments

Ask HN: How do you store private keys?

7•max_•2d ago•15 comments

Best AI editor for local models?

6•rocketbro•2d ago•0 comments

Ask HN: How do you store the knowledge gained in a day?

67•dennisy•5d ago•95 comments

SwipeJobs App – Tinder for Job Seekers

3•fidla•1d ago•10 comments

Ask HN: Our only salesperson was working for a competitor. Advice?

12•betrayawayed555•2d ago•8 comments

Ask HN: Why is no one making FILE_ID.DIZ anymore?

11•reconnecting•4d ago•5 comments

Ask HN: Is Slack Down?

69•abatilo•6d ago•29 comments

Symbolic Logic Based LLM

5•sandeeptshelvan•3d ago•1 comments

Ask HN: Did anyone else see an avalanche of old email appear in Gmail?

4•DamnInteresting•2d ago•2 comments

FlyLoop – AI Agent for Scheduling Meetings and Managing Your Calendar

19•localbuilder•6d ago•4 comments

Ask HN: How would you fund a tech cooperative owned by workers and users?

8•prrada•3d ago•7 comments

What do people use for on-call these days?

8•skullum•2d ago•10 comments

Ask HN: Any good tools to pgdump multi tenant database?

3•polishdude20•2d ago•4 comments
Open in hackernews

Ask HN: How do you store private keys?

7•max_•2d ago
It seems there is no standard proper way to store private keys.

I have been using AGE [0]

And I really don't like the idea of having the keys stored in the home directory in plain text.

There is also a risk of losing the keys if my laptop is damaged or gets stolen.

Is there a proper tool for storing encryption keys?

Comments

dale_huevo•2d ago
> And I really don't liek the idea of having the keys stored in the home directory in plain text.

so encrypt them.

or store them in a hardware token.

or on a USB stick (poor man's hardware token).

> There is also a risk of losing the keys if my laptop is damaged or gets stolen.

backups, full disk encryption.

max_•2d ago
Hi,

Thanks for this reply. Could you recommend any good "hardware tokens"?

dale_huevo•2d ago
Nitrokey
Spooky23•19h ago
Yubikeys are the gold standard in this space for most people.
stop50•2d ago
Smartcards + an printed backup in another location.
oulipo•2d ago
if you're referring to SSH keys, you can use something like 1Password which stores them encrypted and syncs them in the cloud, so you keep them even if you lose your laptop
mos_6502•2d ago
> It seems there is no standard proper way to store private keys.

The gold standard for this would be a Hardware Security Module (HSM), which is essentially a device that stores private keys with certain guarantees of physical security (e.g, that private key material cannot be extracted from the device once it has been generated or placed there, and the device performs operations using the key material on behalf of some client).

HSMs in various forms underpin all sorts of cryptosystems that society depends on, because securing private key material at rest is essential. You'll find them everywhere from your debit/credit card, to certificate authorities, financial institutions, defense, and your smartphone.

For your use case, I'd recommend taking a look at Yubikeys. I did a writeup a while back on how to use them to store different types of private keys for various purposes:

https://blog.ctis.me/2022/12/yubikey-piv-gpg/

znpy•2d ago
AFAIK you should also be able to store them on the TPM (trusted platform module) on your pc.
throwup238•2d ago
1Password with their SSH agent [1] for SSH keys, their CLI [2] for local secrets, and their terraform provider with service tokens for infrastructure keys/secrets. Yubikey for the secrets I’m most paranoid about.

You can essentially encrypt all environment variables, not just SSH keys, by aliasing your terminal commands to the 1password CLI. I have a “secrets” repo where all dotenv files are checked in with values like “op://vault-name/secret-name/key-name” that get injected by the op cli.

[1] https://developer.1password.com/docs/ssh/agent/

[2] https://developer.1password.com/docs/cli/get-started/

toomuchtodo•2d ago
https://openbao.org/
atmosx•2d ago
Paper. There’s a project called paperkey that allows you to store GPG keys on A4 paper. You could apply a similar approach to your age encrypted private keys or store them in plain text.

Modern smartphones have excellent OCR (optical character recognition) capabilities, so converting images of printed text back into digital form is now quite easy and reliable.

Personally, I use 1Password, and even they recommend printing out a PDF copy of your passwords and storing it in a secure location - like a physical vault. It’s a practical backup in case something happens and someone needs access to your credentials.

bonki•2d ago
keepass
imcotton•2d ago
I have previously written a blog post on this very topic, tl;dr: deleting your keys.

https://blog.imcotton.xyz/my-ssh-folder-has-no-private-keys

vivokey•1d ago
Get a vivokey.com/apex implant!
leftcenterright•21h ago
In the stars: https://writingshapeless.substack.com/p/stellar-passphrase-s...