openssl.conf を削除してしまった

いろいろ調べた結果、openssl を再インストールした方が楽。

Openssl をアンインストールする

% whereis openssl
openssl: /usr/bin/openssl /usr/local/man/man1/openssl.1.gz /usr/ports/security/openssl
% cd /usr/ports/security/openssl
% sudo make deinstall
Password:

再インストールをする

% sudo make install clean
...
Copy /usr/local/openssl/openssl.cnf.sample to /usr/local/openssl/openssl.cnf
and edit it to fit your needs.

===>   Compressing manual pages for openssl-1.0.0_3
===>   Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===>   Registering installation for openssl-1.0.0_3
===> SECURITY REPORT: 
      This port has installed the following files which may act as network
      servers and may therefore pose a remote security risk to the system.
/usr/local/bin/openssl
/usr/local/lib/libcrypto.so.7

      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type 'make deinstall'
      to deinstall the port if this is a concern.

      For more information, and contact details about the security
      status of this software, see the following webpage: 
http://www.openssl.org/
===>  Cleaning for makedepend-1.0.2,1
===>  Cleaning for openssl-1.0.0_3

openssl.conf をコピーして、適切なディレクトリに保存する

% sudo cp /usr/local/openssl/openssl.cnf.sample /usr/local/openssl/openssl.cnf

この場合は、openssl.conf ではなく openssl.cnf というファイル名になっているので、指示に従う。