mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
4b31843e64
svn path=/nixos/trunk/; revision=10936
13 lines
294 B
Bash
13 lines
294 B
Bash
#! @shell@ -e
|
|
|
|
mkdir -p /var/elliptic-keys
|
|
chmod 0755 /var/elliptic-keys
|
|
cd /var/elliptic-keys
|
|
touch private
|
|
chmod 0700 private
|
|
dd if=/dev/urandom bs=128 count=1 of=private
|
|
chmod 0500 private
|
|
public=$(seccure-key -F private 2>&1)
|
|
echo ${public#*The public key is: } > public
|
|
chmod 0555 public
|
|
|