User Tools

Site Tools


eric:computer:greenstone_digital_library:greenstone.installing.linux.13

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
eric:computer:greenstone_digital_library:greenstone.installing.linux.13 [2026/10/09 23:28] – admineric:computer:greenstone_digital_library:greenstone.installing.linux.13 [2026/10/09 23:32] (current) – admin
Line 10: Line 10:
 <code>wjl.monsoonhub.org</code> <code>wjl.monsoonhub.org</code>
  
-<HTML><ol start="2" style="list-style-type: decimal;"></HTML> +Edit /etc/hosts and add <code>127.0.0.1 wjl.monsoonhub.org</code>
-<HTML><li></HTML>Edit /etc/hosts and add<HTML></li></HTML><HTML></ol></HTML>+
  
-<html><code></html>127.0.0.1 wjl.monsoonhub.org<html></code></html>+Create keys
  
-<HTML><ol start="3" style="list-style-type: decimal;"></HTML> +<code>$ sudo openssl req -new -x509 -extensions v3_ca -keyout private/cakey.pem -out cacert.pem -days 365 -config ./openssl.cnf Generating a 1024 bit RSA private key …….++++++ ..++++++ writing new private key to ‘private/cakey.pem’ Enter PEM pass phrase: Verifying - 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. —– Organization Name (company) [The Sample Company]:Wycliffe Global Alliance Organizational Unit Name (department, division) []:Asia Pacific Communication Email Address []:eric_swanson@wycliffe.net Locality Name (city, district) [Metropolis]:Singapore State or Province Name (full name) [New York]:Singapore Country Name (2 letter code) [US]:SG Common Name (hostname, IP, or your name) []:wjl.monsoonhub.org
-<HTML><li></HTML>Create keys<HTML></li></HTML><HTML></ol></HTML> +
- +
-<html><code></html>$ sudo openssl req -new -x509 -extensions v3_ca -keyout private/cakey.pem -out cacert.pem -days 365 -config ./openssl.cnf Generating a 1024 bit RSA private key …….++++++ ..++++++ writing new private key to ‘private/cakey.pem’ Enter PEM pass phrase: Verifying - 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. —– Organization Name (company) [The Sample Company]:Wycliffe Global Alliance Organizational Unit Name (department, division) []:Asia Pacific Communication Email Address []:eric_swanson@wycliffe.net Locality Name (city, district) [Metropolis]:Singapore State or Province Name (full name) [New York]:Singapore Country Name (2 letter code) [US]:SG Common Name (hostname, IP, or your name) []:wjl.monsoonhub.org+
  
 sysadmin@wjl:~/eric/CA$ sudo openssl req -new -nodes -out req.pem -config ./openssl.cnf Generating a 1024 bit RSA private key .++++++ ……………………………………..++++++ writing new private key to ‘key.pem’ —– 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. —– Organization Name (company) [The Sample Company]:Wycliffe Global Alliance Organizational Unit Name (department, division) []:Asia Pacific Communication Email Address []:eric_swanson@wycliffe.net Locality Name (city, district) [Metropolis]:Singapore State or Province Name (full name) [New York]:Singapore Country Name (2 letter code) [US]:SG Common Name (hostname, IP, or your name) []:wjl.monsoonhub.org sysadmin@wjl:~/eric/CA$ sudo openssl req -new -nodes -out req.pem -config ./openssl.cnf Generating a 1024 bit RSA private key .++++++ ……………………………………..++++++ writing new private key to ‘key.pem’ —– 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. —– Organization Name (company) [The Sample Company]:Wycliffe Global Alliance Organizational Unit Name (department, division) []:Asia Pacific Communication Email Address []:eric_swanson@wycliffe.net Locality Name (city, district) [Metropolis]:Singapore State or Province Name (full name) [New York]:Singapore Country Name (2 letter code) [US]:SG Common Name (hostname, IP, or your name) []:wjl.monsoonhub.org
Line 26: Line 22:
 1 out of 1 certificate requests certified, commit? [y/n]y Write out database with 1 new entries Data Base Updated 1 out of 1 certificate requests certified, commit? [y/n]y Write out database with 1 new entries Data Base Updated
  
-$ sudo cat key.pem cert.pem >key-cert.pem <html></code></html> 4. Copy certificate and key file to where Apache wants them+$ sudo cat key.pem cert.pem >key-cert.pem </code>
  
-<html><code></html>$ sudo cp ./cert.pem /etc/ssl/certs/cert.pem $ sudo cp ./key.pem /etc/ssl/private/key.pem <html></code></html> 5. Edit /etc/apache2/sites-available/default-ssl to point to the new cert.pem and key.pem files:+4. Copy certificate and key file to where Apache wants them
  
-<HTML> +<code>$ sudo cp ./cert.pem /etc/ssl/certs/cert.pem $ sudo cp ./key.pem /etc/ssl/private/key.pem </code> 
-<pre><code> #   A self-signed (snakeoil) certificate can be created by installing+ 
 +5. Edit /etc/apache2/sites-available/default-ssl to point to the new cert.pem and key.pem files: 
 + 
 +<code> #   A self-signed (snakeoil) certificate can be created by installing
     #   the ssl-cert package. See     #   the ssl-cert package. See
     #   /usr/share/doc/apache2.2-common/README.Debian.gz for more info.     #   /usr/share/doc/apache2.2-common/README.Debian.gz for more info.
Line 42: Line 41:
         # use wjl key created by Eric Swanson         # use wjl key created by Eric Swanson
         SSLCertificateKeyFile /etc/ssl/private/key.pem</b>         SSLCertificateKeyFile /etc/ssl/private/key.pem</b>
-</code></pre> + 
-</HTML> +$ sudo /etc/init.d/apache2 restart Restarting web server: apache2 … waiting . </code>
-<html><code></html>$ sudo /etc/init.d/apache2 restart Restarting web server: apache2 … waiting . <html></code></html>+
  
  
eric/computer/greenstone_digital_library/greenstone.installing.linux.13.1791588487.txt.gz · Last modified: by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki