GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PKG_SIGN(1) FreeBSD General Commands Manual PKG_SIGN(1)

pkg_sign, pkg_check
package ¤Î½ð̾¤ò°·¤¦

pkg_sign [-sc] [-t type] [-u id] [-k key] [file ...] pkg_check [-sc] [-u id] [-k cert] [file ...]

pkg_sign ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï°Å¹æ²½¤µ¤ì¤¿½ð̾¤ò gzip ¥Õ¥¡¥¤¥ë file ¤ËËä¤á¤³¤ß¤Þ¤¹¡£ type ¤Ë¤Ï pgp (¥Ç¥Õ¥©¥ë¥È), sha1, x509 ¤¬»ØÄê¤Ç¤­¤Þ¤¹¡£ type ¤ò pgp ¤Ë¤¹¤ë¤È¡¢ pgp ÈëÌ©¸°¤ÎÍøÍѤò²Äǽ¤Ë¤¹¤ë¤¿¤á¤Î ¥Ñ¥¹¥Õ¥ì¡¼¥ºÆþÎϤòÂ¥¤¹¥×¥í¥ó¥×¥È¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£ ¥Ñ¥¹¥Õ¥ì¡¼¥º¤òÀßÄꤷ¤Æ¤¤¤Ê¤¯¤Æ¤âɽ¼¨¤µ¤ì¤Þ¤¹ (¤³¤ì¤Ï¤¤¤º¤ì¤Ë¤»¤èÎɤ¯¤Ê¤¤¾õ¶·¤Ç¤¹¤¬)¡£ type ¤¬ sha1 ¤Î¾ì¹ç¤Ï¡¢ id ¤ò»ØÄꤹ¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¤³¤ì¤Ï package (ÌõÃí: FreeBSD ¤Î package system ¤Ë¤ª¤±¤ë¥Ñ¥Ã¥±¡¼¥¸¤ò»Ø¤¹¾ì¹ç¤Ë¤³¤¦É½µ­¤·¤Þ¤¹) ¤Î̾Á°¤È¤·¤Æµ­Ï¿¤µ¤ì¡¢SHA1 ¥Á¥§¥Ã¥¯¥µ¥à¤È¤·¤Æɽ¼¨¤µ¤ì¤Þ¤¹¡£

pkg_check ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï°Å¹æ²½¤µ¤ì¤¿½ð̾¤ò¥Á¥§¥Ã¥¯¤·¤Þ¤¹¡£ ¸½ºß¤Ï type ¤ò̵»ë¤·¡¢°ìÈÖ¾å (topmost) ¤Î½ð̾¤À¤±¤ò¥Á¥§¥Ã¥¯¤·¤Þ¤¹¡£ sha1 ¤ËÂФ·¤Æ¤Ï¡¢ pkg_check ¤Ï¥Õ¥¡¥¤¥ë¤Î¥Á¥§¥Ã¥¯¥µ¥à¤ò¼è¤ê¡¢ ·ë²Ì¤¬ /var/db/pkg/SHA1 ¤Ëµ­Ï¿¤µ¤ì¤Æ¤¤¤ë¥Á¥§¥Ã¥¯¥µ¥à¤Î¥ê¥¹¥È¤Ë¥Þ¥Ã¥Á¤¹¤ë¤«¤É¤¦¤«³Îǧ¤·¤Þ¤¹¡£

¥ª¥×¥·¥ç¥ó -s ¤ª¤è¤Ó -c ¤Ï¡Öpackage ¤Ø¤Î½ð̾¡×¥â¡¼¥É¤ª¤è¤Ó¡Ö½ð̾¥Á¥§¥Ã¥¯¡×¥â¡¼¥É¤ò¶¯À©¤·¤Þ¤¹¡£

pgp ¤Ç¤Ï¡¢ package ¤Ø¤Î½ð̾¤ä½ð̾¥Á¥§¥Ã¥¯¤ËÍѤ¤¤ë id ¤ò -u ¤Ç»ØÄê¤Ç¤­¤Þ¤¹¡£

x509 ¤Ç¤Ï¡¢ ½ð̾¥­¡¼¤Þ¤¿¤Ï¸¡¾Ú¤¹¤ë¾ÚÌÀ½ñ (certificate) ¤ò -k ¥ª¥×¥·¥ç¥ó¤Ç»ØÄê¤Ç¤­¤Þ¤¹¡£ »ØÄꤷ¤Ê¤¤¤È¡¢package ¤Ï°Ê²¼¤Çµ­½Ò¤·¤Æ¤¤¤ë ¥Ç¥Õ¥©¥ë¥È¤Î¥­¡¼¤Ç½ð̾ (¥Ç¥Õ¥©¥ë¥È¤Î¾ÚÌÀ½ñ¤Ç¸¡¾Ú) ¤µ¤ì¤Þ¤¹¡£

file ¤¬¥À¥Ã¥·¥å¤Ò¤È¤Ä (‘-’) ¤À¤Ã¤¿¤ê»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢ pkg_sign ¤Ïɸ½àÆþÎϤ«¤éÆɤ߹þ¤ß¤Þ¤¹¡£

package ¤Ø¤Î½ð̾¤Ç¤Ï gzip ·Á¼°¤ÎÆÃħ¤òÍøÍѤ·¤Æ¤¤¤Þ¤¹¡£ ¤³¤ì¤Ï¡¢gzip ¤Î¥Ø¥Ã¥À¤Ë¤Ï EXTRA_FIELD ¤È¤¤¤¦¥Õ¥é¥°¤òÀßÄê¤Ç¤­¡¢Í¾Ê¬¤Î¥Ç¡¼¥¿¤ò gzip ¥Ø¥Ã¥À¤È°µ½Ì¥Õ¥¡¥¤¥ë¤Î´Ö¤ËÊݸ¤Ç¤­¤ë¡¢¤È¤¤¤¦¤â¤Î¤Ç¤¹¡£ OpenBSD ¤Î½ð̾µ¡¹½¤Ç¤Ï¡¢ ‘SIGPGP’ + length ¤ä ‘CKSHA1’ + length ¤Î¤è¤¦¤Ê 8 ¥Ð¥¤¥È¤Î¥Þ¡¼¥«¤ò½ð̾¤ËÍѤ¤¤Æ¤¤¤Þ¤¹ (¤³¤ì¤é¤Î¥Þ¡¼¥«¤ÏÅÁÅýŪ¤Ë 8 ¥Ð¥¤¥ÈĹ¤È¤Ê¤Ã¤Æ¤¤¤Þ¤¹)¡£

pkg_sign ¤ª¤è¤Ó pkg_check ¤Î¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï¡¢ file ¤Î¤¤¤º¤ì¤«¤Ë¤Ê¤Ë¤«ÌäÂ꤬¤¢¤ë¤È¡¢0 ¤è¤êÂ礭¤¤½ªÎ»¥³¡¼¥É¤òÊÖ¤·¤Þ¤¹¡£ pkg_check ¤Î¾ì¹ç¡¢¤³¤ì¤ÏÄ̾ï package ¤¬½ð̾¤µ¤ì¤Æ¤¤¤Ê¤¤¡¢ ¤¢¤ë¤¤¤Ï½ð̾¤¬ÙÔ¤¤µ¤ì¤Æ¤¤¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£
File %s is already signed
¤½¤Î gzip ¥Õ¥¡¥¤¥ë¤Ë¤Ï¡¢´û¤Ë½ð̾¤¬Ëä¤á¤³¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£ pkg_sign ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ïº£¤Î¤È¤³¤íÊ£¿ô¤Î½ð̾¤ò°·¤¤¤Þ¤»¤ó¡£
File %s is not a signed gzip file
¤³¤Î package ¤Ë¤Ï½ð̾¤¬¤¢¤ê¤Þ¤»¤ó¡£
File %s is not a gzip file
gzip ¥Ø¥Ã¥À¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£
File %s contains an unknown extension
gzip ¥Õ¥¡¥¤¥ë¤Î³ÈÄ¥Îΰ褬¡¢Ê̤β¿¤é¤«¤ÎÍÑÅӤ˴û¤Ë»È¤ï¤ì¤Æ¤¤¤Þ¤·¤¿¡£
File %s uses old signatures, no longer supported
¤³¤Î gzip ¥Õ¥¡¥¤¥ë¤Ï¡¢Èó¾ï¤Ë¸Å¤¤ÈǤΠ(¤«¤Ê¤êÃÙ¤¯¤Ê¤ë) package ½ð̾¤òÍѤ¤¤Æ¤¤¤Þ¤¹¡£

pgp(1) ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï¤¢¤Þ¤êÀ߷פÎÎɤ¯¤Ê¤¤¥×¥í¥°¥é¥à¤Ç¡¢ ¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤ò¼è¤ë¤Î¤¬Æñ¤·¤¤¤Ç¤¹¡£ Î㤨¤Ð pgp ¤¬Ä󶡤·¤Æ¤¤¤ë¤È¤¤¤Ã¤Æ¤¤¤ë ¡ÖʬΥ½ð̾µ¡Ç½ (separate signing scheme)¡× ¤ÏÉÔÊضˤޤê¤Ê¤¤¤â¤Î¤Ç¡¢¥Ñ¥¤¥×¤òÄ̤·¤Æ¤ÎÍøÍѤ¬¤Ç¤­¤Þ¤»¤ó¡£ ¤·¤¿¤¬¤Ã¤Æ pgp_sign ¤Ç¤Ï¤³¤ì¤ò¤Ê¤ó¤È¤«¤¹¤ë¤¿¤á¤Ë¡¢ pgp ½ð̾¤ÎŤµ¤òÃΤäƤ¤¤ë¤³¤È¤Ë¤·¤Æ¡¢ pgp ¤ò¡Ö¥·¡¼¥à¥ì¥¹¡×½ð̾¥â¡¼¥É¤Çµ¯Æ°¤·¡¢ ¥Õ¥¡¥¤¥ëËÜÂΤϰµ½Ì¤·¤Ê¤¤¤Ç½ð̾¤Î¤ß¤ò¼è½Ð¤·¤Æ¤¤¤Þ¤¹¡£

¥Á¥§¥Ã¥¯Æ°ºî¤Ç¤Ï¤¢¤Þ¤êÊ£»¨¤Ê¤³¤È¤Ï¤·¤Æ¤¤¤Þ¤»¤ó¡£ pgp ¤ËÆþÎϤ¹¤ë¥Õ¥¡¥¤¥ë¤ò¤½¤Î¾ì¤ÇºÆ¥Ó¥ë¥É¤·¤Æ¤¤¤Þ¤¹¡£

pgp ¤ª¤è¤Ó¥Á¥§¥Ã¥¯¥µ¥à¥Õ¥¡¥¤¥ë¤Ø¤Î¥Ñ¥¹¤ÏÉÔÀµÍøÍѤò˸¤²¤ë¤¿¤á¤Ë ¥Ï¡¼¥É¥³¡¼¥É¤µ¤ì¤Æ¤¤¤Þ¤¹¡£¤½¤Î¤¿¤á½ÀÆðÀ­¤Ï»¤Ê¤ï¤ì¤Æ¤¤¤Þ¤¹¡£

file.sign
pkg_sign ¤¬ file ¤«¤é¥Ó¥ë¥É¤¹¤ë°ì»þ¥Õ¥¡¥¤¥ë
/usr/local/bin/pgp
pgp(1) ¤Î¥Ç¥Õ¥©¥ë¥È¤Î¥Ñ¥¹
/var/db/pkgs/SHA1
µ­Ï¿ºÑ¤ß¤Î¥Á¥§¥Ã¥¯¥µ¥à
/etc/ssl/pkg.key
¥Ç¥Õ¥©¥ë¥È¤Î package ¤Ø¤Î½ð̾¥­¡¼
/etc/ssl/pkg.crt
¥Ç¥Õ¥©¥ë¥È¤Î package ¸¡¾ÚÍѾÚÌÀ½ñ

gzip(1), pgp(1), pkg_add(1), sha1(1)

pkg_sign ¥æ¡¼¥Æ¥£¥ê¥Æ¥£¤Ï Marc Espie ¤¬ OpenBSD ¥×¥í¥¸¥§¥¯¥È¤Î¤¿¤á¤ËºîÀ®¤·¤Þ¤·¤¿¡£ X.509 ½ð̾¤È FreeBSD ¥µ¥Ý¡¼¥È¤Ï Wes Peters ⟨wes@softweyr.com⟩ ¤¬Äɲä·¤Þ¤·¤¿¡£
September 24, 1999 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.