2

I need to generate secure encryption keys but don't want to spend a lot of money on a dedicated Hardware Security Module. Would an air-gapped Raspberry with Raspbian be good for the job? Does it create true random numbers or would I need a true random source? Or is it really just a bad idea?

1 Answer 1

1

There are two interessting articles about RPi1 integrated RNG (Random Number Generator): http://scruss.com/blog/2013/06/07/well-that-was-unexpected-the-raspberry-pis-hardware-random-number-generator/ and http://fios.sector16.net/hardware-rng-on-raspberry-pi/. I have not checked wheter the subsequent BCM chipsets contain an RNG, but it would be very possible. With this in mind, I would use this. If you really need something like this and would really need to provide very secure key generation, you could do it in this way, however, how would you exfiltrate the keys? With an airgap and complete security, the only way should be Mouse and Keyboard. However - that would only give you an secure key - whose security would be threatend as soon as you write it down in any electronic system. So - it would be useful to create really secure - non tampered - keys - but in the end, you won't be able to keep that security level up as soon as the key hits the real world. There are always possiblites to increase security - but you'll need to make sacrifices for that. And question is, if that is really necessary and if your secure system does not break somewhere down the chain i.e. nearly perfectly random generated keys are useless if i.e. the private key is stolen while it is decrypted :).

3
  • Thanks a lot, I will check if our PI's have a hardware RNG. I'm aware that key management is a problem. We plan to generate RSA key pairs and copy the private keys to a USB-stick that will be stored in a safe place (actually 2 USB-sticks stored in 2 safe places). The public keys will be used for backup encryption so the private keys will only be used when we need to decrypt a backup. Decryption will take place on a secure (air-gapped) computer so I believe that our private key will stay very private.
    – Gert-Jan
    Commented Feb 13, 2017 at 14:48
  • @Gert-Jan This concept sounds good to me :)
    – nmaas87
    Commented Feb 13, 2017 at 15:00
  • 1
    I can confirm that our RPi2 still has the hardware RNG, so we're good to go!
    – Gert-Jan
    Commented Feb 13, 2017 at 22:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.