⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 showhostkey.8

📁 This a good VPN source
💻 8
字号:
.TH IPSEC_SHOWHOSTKEY 8 "5 March 2002".\" RCSID $Id: showhostkey.8,v 1.15 2003/06/06 04:21:45 dhr Exp $.SH NAMEipsec showhostkey \- show host's authentication key.SH SYNOPSIS.B ipsec.B showhostkey[.B \-\-key] [.B \-\-left] [.B \-\-right] [.B \-\-txtgateway] [.B \-\-dhclient] [.B \-\-filesecretfile] [.B \-\-ididentity].SH DESCRIPTION.I Showhostkeyoutputs (on standard output) a public key suitable for this host,in the format specified,using the host key information stored in.IR /etc/ipsec.secrets .In general only the super-user can run this command,since only he can read.IR ipsec.secrets ..PPThe.B \-\-txtoption causes the output to be in opportunistic-encryption DNS TXT recordformat,with the specified.I gatewayvalue.If information about how the key was generated is available,that is provided as a DNS-file comment.For example,.B "\-\-txt 10.11.12.13"might give (with the key data trimmed for clarity):.PP.nf  ; RSA 2048 bits   xy.example.com   Sat Apr 15 13:53:22 2000      IN TXT  "X-IPsec-Server(10)=10.11.12.13 AQOF8tZ2...+buFuFn/".fi.PPNo name is supplied in the TXT recordbecause there are too many possibilities,depending on how it will be used.If the text string is longer than 255 bytes,it is split up into multiple strings (matching the restrictions ofthe DNS TXT binary format).If any split is needed, the first split will be at the start of the key:this increases the chances that later hand editing will work..PPThe.B \-\-leftand.B \-\-rightoptions cause the output to be in.IR ipsec.conf (5)format, as a.B leftrsasigkeyor.B rightrsasigkeyparameter respectively.Again, generation information is included if available.For example,.B \-\-leftmight give (with the key data trimmed down for clarity):.PP.nf  # RSA 2048 bits   xy.example.com   Sat Apr 15 13:53:22 2000  leftrsasigkey=0sAQOF8tZ2...+buFuFn/.fi.PPThe.B \-\-dhclientoption cause the output to be suitable for inclusion in.IR dhclient.conf (5)as part of configuring WAVEsec.See <http://www.wavesec.org>..PPIf.B \-\-keyis specified,the output format is the text form of a DNS KEY record;the host name is the one included in the key information(or, if that is not available,the output of.BR "hostname\ \-\-fqdn" ),with a.B \&.appended.Again, generation information is included if available.For example (with the key data trimmed down for clarity):.PP.nf  ; RSA 2048 bits   xy.example.com   Sat Apr 15 13:53:22 2000  xy.example.com.   IN   KEY   0x4200 4 1 AQOF8tZ2...+buFuFn/.fi.PPNormally, the default key for this host(the one with no host identities specified for it) is the one extracted.The.B \-\-idoption overrides this,causing extraction of the key labeled with the specified.IR identity ,if any.The specified.I identitymust.I exactlymatch the identity in the file;in particular, the comparison is case-sensitive..PPThe.B \-\-fileoption overrides the default for where the key information should befound, and takes it from the specified.IR secretfile ..SH DIAGNOSTICSA complaint about ``no pubkey line found'' indicates that thehost has a key but it was generated with an old version of FreeS/WANand does not contain the information that.I showhostkeyneeds..SH FILES/etc/ipsec.secrets.SH SEE ALSOipsec.secrets(5), ipsec.conf(5), ipsec_rsasigkey(8).SH HISTORYWritten for the Linux FreeS/WAN project<http://www.freeswan.org>by Henry Spencer..SH BUGSArguably,rather than just reporting the no-IN-KEY-line-found problem,.I showhostkeyshould be smart enough to run the existing key through.I rsasigkeywith the.B \-\-oldkeyoption, to generate a suitable output line..PPThe need to specify the gateway address (etc.) for.B \-\-txtis annoying, but there is no good way to determine it automatically..PPThere should be a way to specify the priority value for TXT records;currently it is hardwired to.BR 10 ..PPThe.B \-\-idoption assumes that the.I identityappears on the same line as the.B ":\ RSA\ {"that begins the key proper.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -