OpenSSLのインストール |
[root src]# tar xzvf openssl-0.9.7a.tar.gz [root src]# cd openssl-0.9.7a [root openssl-0.9.7a]# ./config --openssldir=/usr/local/openssl no-rc5 no-idea shared [root openssl-0.9.7a]# make [root openssl-0.9.7a]# make install |
[postgres bin]$ psql psql: error while loading shared libraries: libssl.so.0.9.7: cannot open shared object file: No such file or directory |
[postgres bin]$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/openssl/lib$ |
[postgres bin]$ ldconfig /usr/local/openssl/lib |
/usr/X11R6/lib /usr/lib/gconv /usr/lib/qt/lib /usr/local/lib /usr/i386-linuxaout/lib /usr/lib/libc5-compat /usr/local/openssl/lib <--追加 |
export PATH=$PATH:/usr/local/openssl/bin |
[root certs]# openssl req -new -text -out postgres.req -keyout postgres.pem Using configuration from /var/ssl/openssl.cnf Generating a 1024 bit RSA private key .++++++ ..++++++ writing new private key to 'postgres.pem' Enter PEM pass phrase:<-パスフレーズは適当でよいですが後で使うので忘れないで。 Verifying password - Enter PEM pass phrase: ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]:JP これ以下適当に入力します。証明書を公開目的で使うわけでないので適当でよいです。未入力にする場合は"."を入力します。 State or Province Name (full name) [Some-State]:TOKYO Locality Name (eg, city) []:. Organization Name (eg, company) [Internet Widgits Pty Ltd]:. Organizational Unit Name (eg, section) []:. Common Name (eg, YOUR name) []:www.ryouto.jp Email Address []:webmaster@ryouto.jp Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []:. An optional company name []:. |
[root certs]# openssl rsa -in postgres.pem -out postgres.pem read RSA key Enter PEM pass phrase:先に入力したフレーズ writing RSA key |
[root certs]# openssl req -x509 -in postgres.req -text -key postgres.pem -out postgres.cert Using configuration from /var/ssl/openssl.cnf |
お問い合わせはwebmaster@ryouto.jpまで。
Copyright (C)2003 ryouto.jp. All Rights Reserved.