Linux,Unix,BSD

GnuPG(gpg) 사용하기 ; 파일/문서 암호화 프로그램

채윤아빠 2009. 6. 6. 19:51
728x90
반응형
문서나 파일을 암호화하는데 사용하는 gpg를 사용하기 위하여 개인키를 생성을 해야 합니다.
키 생성은 다음과 같이 합니다.
# gpg --gen-key
키 생성시 다음과 같은 오류가 발생하면 아래 패키지를 설치해야 합니다.
can't connect to `/root/.gnupg/S.gpg-agent': No such file or directory
gpg-agent[15375]: can't connect server: `ERR 67109133 can't exec `/usr/local/bin/pinentry': No such file or directory'
gpg-agent[15375]: can't connect to the PIN entry module: IPC connect call failed
gpg-agent[15375]: command get_passphrase failed: No pinentry
gpg: problem with the agent: No pinentry
gpg: Key generation canceled.

security/pinetry 패키지 설치 필요함
/usr/ports/security/pinentry

===>   Registering installation for pinentry-0.7.5_1
===>  Cleaning for qt-3.3.8_9
===>  Cleaning for intltool-0.40.6
===>  Cleaning for glib-1.2.10_12
===>  Cleaning for gtk-1.2.10_20
===>  Cleaning for atk-1.26.0
===>  Cleaning for glib-2.20.3
===>  Cleaning for gtk-2.16.1
===>  Cleaning for pango-1.24.2
===>  Cleaning for gio-fam-backend-2.20.3
===>  Cleaning for qmake-3.3.8_1
===>  Cleaning for libXinerama-1.0.3,1
===>  Cleaning for libXi-1.2.1,1
===>  Cleaning for libmng-1.0.10
===>  Cleaning for libXft-2.1.13
===>  Cleaning for cups-client-1.3.10_2
===>  Cleaning for nas-1.9.1_3
===>  Cleaning for libGLU-7.4.2_1
===>  Cleaning for p5-XML-Parser-2.36
===>  Cleaning for icu-3.8.1_2
===>  Cleaning for libXrender-0.9.4_1
===>  Cleaning for libXrandr-1.3.0
===>  Cleaning for libXcursor-1.1.9_1
===>  Cleaning for libXfixes-4.0.3_1
===>  Cleaning for libXdamage-1.1.1
===>  Cleaning for libXcomposite-0.4.0,1
===>  Cleaning for tiff-3.8.2_3
===>  Cleaning for jasper-1.900.1_7
===>  Cleaning for shared-mime-info-0.60_1
===>  Cleaning for hicolor-icon-theme-0.10_2
===>  Cleaning for cairo-1.8.6_1,1
===>  Cleaning for xorg-fonts-truetype-7.4
===>  Cleaning for encodings-1.0.2,1
===>  Cleaning for gamin-0.1.10_2
===>  Cleaning for xineramaproto-1.1.2
===>  Cleaning for lcms-1.18,1
===>  Cleaning for fontconfig-2.6.0,1
===>  Cleaning for gnutls-2.6.5
===>  Cleaning for imake-1.0.2_4,1
===>  Cleaning for glproto-1.4.10
===>  Cleaning for dri2proto-2.0
===>  Cleaning for libXxf86vm-1.0.2
===>  Cleaning for libGL-7.4.2_1
===>  Cleaning for renderproto-0.9.3
===>  Cleaning for randrproto-1.3.0
===>  Cleaning for fixesproto-4.0
===>  Cleaning for damageproto-1.1.0_2
===>  Cleaning for compositeproto-0.4
===>  Cleaning for xcb-util-0.3.4
===>  Cleaning for pixman-0.15.4
===>  Cleaning for font-bh-ttf-1.0.0
===>  Cleaning for font-misc-meltho-1.0.0_1
===>  Cleaning for font-misc-ethiopic-1.0.0
===>  Cleaning for bitstream-vera-1.10_4
===>  Cleaning for mkfontscale-1.0.6
===>  Cleaning for bdftopcf-1.0.1
===>  Cleaning for font-util-1.0.1
===>  Cleaning for gccmakedep-1.0.2
===>  Cleaning for makedepend-1.0.1,1
===>  Cleaning for xorg-cf-files-1.0.2_3
===>  Cleaning for xf86vidmodeproto-2.2.2
===>  Cleaning for libdrm-2.4.11
===>  Cleaning for gperf-3.0.3
===>  Cleaning for mkfontdir-1.0.4
===>  Cleaning for libfontenc-1.0.4
===>  Cleaning for libXfont-1.3.4,1
===>  Cleaning for fontsproto-2.0.2
===>  Cleaning for pinentry-0.7.5_1

security/pinetry를 설치하였더니, 엄청나게 많은 패키지들이 덤으로 설치되는군요 -_-;
서버에 일부러 X를 설치하지 않았건만... -_-;
최소한의 패키지만 설치하여 운영하려고 했는데...