入口
benchmarks
  bonnie
    results
  bytebench
comms
  mgetty
    /etc/mail/aliases
  mgetty+sendfax
    pppd サーバを作る mgetty
    設定の概要
    /etc/tty00 --モデム
    /etc/ttys
    mgetty.config, login.config
    まずは login して見る
    /etc/ppp/options
    /etc/ppp/pap-secrets
    確認方法
cross
  i386-mingw32
  ming-w64
    二つの不思議
databases
  mysql-server
    mysql_install_db
    rc.d/mysqld
    mysql_secure_installation
    20050605
      pkg_add
      (err)
      grant
    help
    error
      mysqlcheck
      reset password
      backup
    reset password
    create db
    create user
    grant
    ProFTPD+mysql
    操作
  postgres
  rrdtool
devel
  cvsync
    cvsync.conf
    ソースの取出
    問題
      desired version
  distcc
    url
    distcc って何
    用意するもの
    distccmon-text
    pkg_add
  doxygen
    Doxyfile
    出力を利用する
    1.4.5
    2007/04
  doxygen/gcc
    doxy 1.4.5
  mercurial
  git
font
  設定方法
    mkfontdir
    fontpath
  確認方法
    fontpath
    全ての書体
  intlfonts
    fontpath
  ipa
graphics
  graphviz
  magicpoint
  tgif
    print error
    work around
ham
  hamlog
inputmethod
  anthy
    kinput2
mail
  cyrus-imapd
    url
    説明
    pkg_info -D
    bin/master
    /etc/rc.d/
    認証
    cyrus-saslauthd
    メール box の管理
    着信(MTA)
    問題
    古い cyrus
    sieve
      設定
      .sieve
      操作
      検査
      有効にするには
      問題
        saslauthd
        passwd is asked
  fml
  sendmail
  milter-regex
  smtpfeed
    smtpfeed.mc
    ./Build
    test
    起動準備
  spamassassin
    pkg_add
    sa-learn
    local.cf
  spamass-milter
    メール見出
    設定
    問題
    tuning
  squirrelmail
    url
    設置と設定
    pkg_info -D
    apache
    開始画面例
    文字符号
    課題
    問題
  ja-squirrelmail
    url
    設置と設定
    pkg_info -D
    開始画面例
    文字符号
    課題
    問題
  ctorrent
  urjtag
misc
  ttyrec
multimedia
  mplayer
  gmplayer
  libdvdcss
  xine-ui
net
  bind9
    設定確認
    起動
    必要な機能の分類
    chroot 環境
  TCP/IP と AppleTalk
  netatalk
    AppleTalk と TCP/IP
    版と構成部品
    pkg_info -D
    afpd
    一時的に起動
    認証
    動作確認
    誤り
  mrtg
  net-snmp
    設定
    起動
    log
    mrtg
    snmpget
    snmpwalk
    man pages
    参考
  rsync
  samba
    版
    設定
      smb.conf
      /etc/rc.d
    起動
    add user
    debug
    problem
news
  inn
pkgtools
  pkg_chk
print
  mf
    pktogf + gftodvi
  bibtex
    ごみ
  xpdf
  ja-ptex-bin
    jpbibtex
  ja-ptex
    dvipdfmx
    その他
  pdvipdfmx
personal
  fml
    設定作業の流れ
    pkg_info -D
    fml-system
    ml を作る
      newml
    /etc/mail/aliases
    Generic From
    sendmail.cf
    最初の会員
    自動で送られるメール
    MHonArc
    majordomo
    覚え
      password の設定
      members-admin
      log
      cf を変更した時には
      自動登録
      メールで管理するには
      admin add で welcome
      asymmetric mode って
      debug
      問題
      package 問題
  id-utils
security
  cyrus-sasl
  cy2-crammd5
  openssh
sysutils
  dd_rescue
  mklivecd
      config
  memtester
textproc
  hyperestraier
    更新
    異常停止
wip
  emacs-current
    X11
wip-jp
wm
  fvwm2
www
  apache
    rc.d
    httpd.conf
    start
    mkcert
    startssl
  ap2-auth-pgsql
  cvsweb
    pkgsrc
  firefox
    Fonts
    言語毎設定
    Firmacs
  php4
    mb_string
      Wordpress
    php.ini
  w3m
X11
  qt2
wip
  u-boot

Software 入口 | Hardware | NetBSD 解説 | packages | macppc | TsubaiBSD 絹/software/全文検索

This is under: http://www.ki.nu/software/pkgsrc/

NetBSD/pkgsrc

Last Update: "2008/09/01 17:39:07 makoto"

www

apache

rc.d

ttyp0:makoto@umax 11:57:43/050605(...3.99.3/All)> sudo cp /usr/pkg/share/examples/rc.d/apache /etc/rc.d Password:

httpd.conf

start

ttyp0:makoto@umax 11:57:47/050605(...3.99.3/All)> sudo /etc/rc.d/apache start Starting apache.

mkcert

ssl 用の鍵を作る mkcert は www/ap-ssl または www/apache2 に含まれています。
www/ap-ssl/PLIST:sbin/mkcert
www/ap-ssl/PLIST:share/doc/mod_ssl/README.mkcert
www/ap-ssl/PLIST:share/mod_ssl/gid-mkcert.sh
www/apache2/PLIST:sbin/mkcert
mkcert は shell 手続ですが、man も mkcert --help 等としても説明が得られません。 説明の正しい表示方法は単に mkcert と入力することです。
ttyp1:makoto@st4200 23:13:14/061225(/export/pkgsrc)> mkcert
Usage:
        mkcert.sh [-t type] [-a algo] [-c crtfile ] [-k keyfile] [-v]

Options:
        -t type         Type of certificates to generate.  Valid types are:
                            dummy      self-signed Snake Oil cert
                            test       test cert signed by Snake Oil CA
                            custom     custom cert signed by own CA
                            existing   existing cert

        -a algo         Signature algorithm for generated certificate.  Valid
                        algorithms are RSA or DSA.

        -c crtfile      Path to an existing certificate

        -k keyfile      Path to an existing key file

        -v              Display the certificate and key, then exit.

ttyp1:makoto@st4200 23:33:38/061225(/export/pkgsrc)> 
例えば、次のように開始します。
 sudo mkcert -t custom -a DSA
正常に終了した場合には、次のような表示になります。
RESULT: CA and Server Certification Files

o  /usr/pkg/etc/httpd/ssl.key/ca.key
   The PEM-encoded DSA private key file of the CA which you can
   use to sign other servers or clients. KEEP THIS FILE PRIVATE!

o  /usr/pkg/etc/httpd/ssl.crt/ca.crt
   The PEM-encoded X.509 certificate file of the CA which you use to
   sign other servers or clients. When you sign clients with it (for
   SSL client authentication) you can configure this file with the
   'SSLCACertificateFile' directive.

o  /usr/pkg/etc/httpd/ssl.key/server.key
   The PEM-encoded DSA private key file of the server which you configure
   with the 'SSLCertificateKeyFile' directive (automatically done
   when you install via APACI). KEEP THIS FILE PRIVATE!

o  /usr/pkg/etc/httpd/ssl.crt/server.crt
   The PEM-encoded X.509 certificate file of the server which you configure
   with the 'SSLCertificateFile' directive (automatically done
   when you install via APACI).

o  /usr/pkg/etc/httpd/ssl.csr/server.csr
   The PEM-encoded X.509 certificate signing request of the server file which
   you can send to an official Certificate Authority (CA) in order
   to request a real server certificate (signed by this CA instead
   of our own CA) which later can replace the /usr/pkg/etc/httpd/ssl.crt/server.crt
   file.

Congratulations that you establish your server with real certificates.

ttyp1:makoto@st4200 23:54:59/061225(/export/pkgsrc)> 
これで次のようなものが作られます。
ttyp2:root@rjn  17:37:32/080901(/usr/pkg)# find . -cmin -10 -ls
    512 Sep  1 17:36 ./etc/httpd/ssl.crt
   1424 Sep  1 17:36 ./etc/httpd/ssl.crt/ca.crt
   1383 Sep  1 17:36 ./etc/httpd/ssl.crt/server.crt
    512 Sep  1 17:36 ./etc/httpd/ssl.csr
    985 Sep  1 17:36 ./etc/httpd/ssl.csr/ca.csr
    976 Sep  1 17:36 ./etc/httpd/ssl.csr/server.csr
    512 Sep  1 17:37 ./etc/httpd/ssl.key
    736 Sep  1 17:37 ./etc/httpd/ssl.key/ca.key
    736 Sep  1 17:37 ./etc/httpd/ssl.key/server.key
    512 Sep  1 17:35 ./etc/httpd/ssl.prm
    455 Sep  1 17:35 ./etc/httpd/ssl.prm/ca.prm
    512 Sep  1 17:35 ./etc/httpd/ssl.crl

startssl

何故か
sudo /etc/rc.d/apache startssl 
は効かないので、
sudo /usr/pkg/sbin/apachectl startssl 
を使います。
NetBSD解説/pkgsrc
Last Update: Tue, 09 Feb 2016 07:22:20 GMT 1.66 2008/03/08