forked from EpiDoc/EFES
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinfo-ssl.txt
57 lines (51 loc) · 1.75 KB
/
info-ssl.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
**SSL**
sudo yum -y install mod_ssl
cd /etc/pki/tls/private
sudo openssl req -new -newkey rsa:2048 -keyout xxx.key -out xxx.csr
// it creates a file xxx.csr with the certificate request and a file xxx.key with the encrypted private key
// after having requested a SSL certificate, to install it:
// copy the .cer certificate(s) [CERT_FILE, CHAIN_CERT_FILE] in /etc/pki/tls/certs/
sudo nano /etc/httpd/conf.d/ssl.conf
// add the following:
DocumentRoot "/var/www/html/xxx"
ServerName xxx.com:443
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/CERT_FILE
SSLCertificateKeyFile /etc/pki/tls/private/jetty.key
SSLCertificateChainFile /etc/pki/tls/certs/CHAIN_CERT_FILE
sudo nano /etc/httpd/sites-available/xxx.conf
// add the following:
NameVirtualHost *:443
<VirtualHost *:80>
...
</VirtualHost>
<VirtualHost *:443>
ServerName xxx.com
DocumentRoot /var/www/html/xxx
ProxyVia Off
ProxyPreserveHost On
ProxyRequests Off
ProxyPass / http://localhost:9999/
ProxyPassReverse / http://localhost:9999/
SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/CERT_FILE
SSLCertificateKeyFile /etc/pki/tls/private/jetty.key
SSLCertificateChainFile /etc/pki/tls/certs/CHAIN_CERT_FILE
</VirtualHost>
systemctl restart httpd
firewall-cmd --add-service=https --permanent
firewall-cmd --add-service=http --permanent [only if it is needed to keep also http]
firewall-cmd --reload
yum install ca-certificates
update-ca-trust force-enable
sudo cp /etc/pki/tls/certs/CHAINCERT_FILE /etc/pki/ca-trust/source/anchors/
update-ca-trust extract
sudo update-ca-trust
**For MedCyprus**
MedCyprusEFES
medcyprus.ucy.ac.cy
jetty.key, jetty.csr
CERT: medcyprus_ucy_ac_cy_cert.cer
CHAIN_CERT: medcyprus_ucy_ac_cy.cer
[UCY VPN, sslvpn.ucy.ac.cy]
[screen; visudo; gh cli + token, clone; crontab: pull, re-harvest (?), re-index]