先在自己的機器與 mysql server 安裝 GnuPG (現在是 1.4.0): # cd /usr/ports/security/gnupg # make install clean
如果是 FreeBSD 4.x,在自己的機器上產生 key 前,先設定 random device:
# rndcontrol -s 5 # rndcontrol -s 11
其中的 5 與 11 是 IRQ number,可以用下面的指令看哪個 IRQ 可以當 random device:
# pciconf -l
接下來在自己機器上用下面的指令產生 publickey 與 privatekey:
$ gpg –gen-key