Selaa lähdekoodia

Significant clean-up, modified instructions

Andrej 1 päivä sitten
vanhempi
commit
1262b05fb2

+ 5 - 8
README.md

@@ -14,20 +14,18 @@ sudo adduser labkey
 sudo usermod -G docker labkey
 ```
 
-- clone the software directly into home
+- clone the software 
 
 ```bash
 sudo su labkey
 cd
-git init .
-git remote add origin <repository-url>
-git pull origin master
+git clone https://git0.fmf.uni-lj.si/studen/labkeyDocker.git
 ```
 
-- run `bin/installLabkey.sh 22.3` to unzip the enclosed LabKey binary code and make appropriate links.
-- copy `bin/env.sh.sample` to `bin/env.sh` and set a secret `$PGPASS`, other settings are probably OK, 
+- run `labkeyDocker/bin/installLabkey.sh 22.3` to unzip the enclosed LabKey binary code and make appropriate links.
+- copy `labkeyDocker/bin/env.sh.sample` to `labkeyDocker/bin/env.sh` and set a secret `$PGPASS`, other settings are probably OK, 
   check `$DOCKERCOMPOSE`
-- set the same value as `password` in `labkey/labkey.xml` 
+- set the same value as `password` in `labkeyDocker/tomcat8/conf/Catalina/localhost/labkey.xml` 
 
 ### Permissions
 
@@ -35,7 +33,6 @@ To run as non-root user labkey, files should have the proper permissions. I beli
 the neccesary files will be created with appropriate permissions. If using an old implementation or in case of troubles, the following directories should be owned by labkey:labkey on host machine:
 
 ```bash
-~/software/src/LabKey22.3.2-3-community/*
 ~/labkey/externalModules
 ~/labkey/files
 ```

+ 0 - 51
Re

@@ -1,51 +0,0 @@
-# Labkey as a docker container
-
-This git project contains everything required to start labkey as a docker container.
-
-## Installation
-
-### Prepare
-
-- Install [`docker`][docker] and [`docker-compose`][dockerCompose]
-- create a user `labkey` with `docker` privileges
-```bash
-sudo adduser labkey
-sudo -G docker labkey
-```
-- clone the software directly into home
-```bash
-sudo su labkey
-git init .
-git remote add origin <repository-url>
-git pull origin master
-```
-- run `bin/installLabkey.sh 22.3` to unzip the enclosed LabKey binary code and make appropriate links.
-- copy `bin/env.sh.sample` to `bin/env.sh` and set a secret `$PGPASS`, other settings are probably OK, 
-  check `$DOCKERCOMPOSE`
-- set the same value as `password` in `labkey/labkey.yml` 
-  
-### Start containers
-  
-Run `bin/startLabkey.sh`. This will do several things:
-   - Download PostgreSQL image and initialize a persistent database at `~/postgresl/data`. 
-  - Build a combined tomcat/R image from a recent version of tomcat
-  - Copy and link files from home to the server
-  - Start the server
-
-### Check the installation
-  
-In principle, the service should be running at `http://localhost:8443/labkey`. Check output of inidividual 
-  components by:
-  
-```bash
-  docker logs config-db-1
-  docker logs config-web-1
-  docker exec -it config-db-1 bash
-```
-  
-### Expected errors
-  
-Errors of the type `500: Unexpected server error` are common and related 
-  
-[docker]: https://docs.docker.com/engine/install/centos/
-[dockerCompose]: https://docs.docker.com/compose/install/

+ 7 - 6
bin/env.sh.sample

@@ -1,10 +1,11 @@
 export NETWORK=labkey_network;
-export POSTGRES_DIR=$HOME/postgresql/data;
-export LABKEY_DIR=$HOME/labkey
-export TOMCAT_DIR=$HOME/tomcat8
-export COMPOSE=$HOME/config/labkey-compose.yaml
+export LBDOCKER=$HOME/labkeyDocker
+export POSTGRES_DIR=$LBDOCKER/postgresql/data;
+export LABKEY_DIR=$LBDOCKER/labkeyBase
+export TOMCAT_DIR=$LBDOCKER/tomcat8
+export COMPOSE=$HOME/config/labkey-compose.22.3.yaml
 export DOCKERCOMPOSE=$HOME/.docker/cli-plugins/docker-compose
 export PGPASS=somethingSecret
 #other variables
-export USER_ID=id_of_labkey_user
-export GROUP_ID=group_id_of_labkey_user
+export USER_ID=$(id -u labkey)
+export GROUP_ID=$(id -g labkey)

+ 33 - 21
bin/installLabkey.sh

@@ -1,5 +1,7 @@
 #!/bin/bash
 
+. $(dirname $0)/env.sh
+
 LABKEY=LabKey22.3.2-3-community
 
 if [ $# -gt 0 ] ; 
@@ -21,38 +23,48 @@ fi;
 
 echo "Using $LABKEY";
 
-SFW_SRC=$HOME/software/packages/$LABKEY.tar.gz
-LABKEY_BASE=$HOME/labkey
-SFW_DIR=$HOME/software/src
+#full path to source
+SFW_SRC=$LBDOCKER/packages/$LABKEY.tar.gz
+
+#this is temp only
+TMP_DIR=$HOME/tmp
 
-if [ ! -d ${SFW_DIR} ] ; 
+if [ ! -d ${TMP_DIR} ] ; 
 then
-	mkdir ${SFW_DIR};
+	mkdir ${TMP_DIR};
 fi;
 
-if [ ! -d $LABKEY_BASE ] ; 
+#is there anything relevant in $LABKEY_DIR?
+if [ ! -d $LABKEY_DIR ] ; 
 then
-	mkdir $LABKEY_BASE;
+	mkdir $LABKEY_DIR;
 fi;
 
-CFG_DIR=$HOME/config
-LABKEY_DIR=$SFW_DIR/$LABKEY;
+#unpack to ${TMP_DIR}/$LABKEY
+TMP_LABKEY=${TMP_DIR}/$LABKEY;
 
+#make sure we are starting from a clean slate
+if [ -d ${TMP_LABKEY} ] ; then
+   rm -rf ${TMP_LABKEY};
+fi;
 
-LINK_DIRS=("tomcat-lib" "labkeywebapp" "modules" "pipeline-lib")
+#untar in ${TMP_DIR}
+cd ${TMP_DIR} && tar xvzf ${SFW_SRC};
+echo "Using distribution in ${TMP_LABKEY}";
 
-if [ ! -d ${LABKEY_DIR} ] ; then
-  	cd ${SFW_DIR};
-  	tar xvzf ${SFW_SRC};
-  	echo "Using distribution in ${LABKEY_DIR}";
-fi;
+#LINK_DIRS=("tomcat-lib" "labkeywebapp" "modules" "pipeline-lib")
+LABKEY_DIRS=("labkeywebapp" "modules" "pipeline-lib")
 
-for d in ${LINK_DIRS[@]} ; 
+#copy from $TMP_LABKEY to labkey space in docker
+for d in ${LABKEY_DIRS[@]} ; 
 do
-	  if [ -L ${LABKEY_BASE}/$d ] ;
-	  then
-		  rm ${LABKEY_BASE}/$d;
-	  fi;
-	  ln -s ${LABKEY_DIR}/$d ${LABKEY_BASE}/$d;
+   mv ${TMP_LABKEY}/$d ${LABKEY_DIR}/$d;
 done;
 
+#tomcat-lib goes to tomcat8 user space in docker
+mv ${TMP_LABKEY}/tomcat-lib ${TOMCAT_DIR/lib
+
+echo "Cleanup";
+#rm -rf ${TMP_LABKEY}
+
+echo "Done"

+ 0 - 43
config/labkey-compose18.1.yaml

@@ -1,43 +0,0 @@
-services:
-
-  db:
-    image: postgres:12
-    volumes: 
-       - ${POSTGRES_DIR}:/var/lib/postgresql/data
-    environment:
-       - POSTGRES_USER=postgres
-       - POSTGRES_PASSWORD=muzikolog
-    ports:
-       - '5432'
-
-
-  web:
-    depends_on:
-        - db
-    image: tomcat:9.0.62-jdk11-temurin-focal
-    volumes:
-      - ${LABKEY_DIR}/labkeywebapp:/usr/local/labkey/labkeywebapp
-      - ${LABKEY_DIR}/modules:/usr/local/labkey/modules
-      - ${LABKEY_DIR}/pipeline-lib:/usr/local/labkey/pipeline-lib
-      - ${LABKEY_DIR}/externalModules:/usr/local/labkey/externalModules
-      - ${HOME}/software/install/jdk:/usr/local/jdk
-      - ${TOMCAT_DIR}/bin/setenv.sh:/usr/local/tomcat/bin/setenv.sh
-      - ${TOMCAT_DIR}/conf/server.xml:/usr/local/tomcat/conf/server.xml
-      - ${TOMCAT_DIR}/conf/key.pem:/usr/local/tomcat/conf/key.pem
-      - ${TOMCAT_DIR}/conf/cert.pem:/usr/local/tomcat/conf/cert.pem
-      - ${TOMCAT_DIR}/conf/ca-chain.pem:/usr/local/tomcat/conf/ca-chain.pem
-      - ${LABKEY_DIR}/tomcat-lib/jtds.jar:/usr/local/tomcat/lib/jtds.jar
-      - ${LABKEY_DIR}/tomcat-lib/labkeyBootstrap.jar:/usr/local/tomcat/lib/labkeyBootstrap.jar
-      - ${LABKEY_DIR}/tomcat-lib/mail.jar:/usr/local/tomcat/lib/mail.jar
-      - ${LABKEY_DIR}/tomcat-lib/mysql.jar:/usr/local/tomcat/lib/mysql.jar
-      - ${LABKEY_DIR}/tomcat-lib/postgresql.jar:/usr/local/tomcat/lib/postgresql.jar
-      - ${LABKEY_DIR}/labkey.xml:/usr/local/tomcat/conf/Catalina/localhost/labkey.xml  
-    ports:
-      - '8080:8080'
-      - '8443:8443'
-    
-
-networks:
-   default:
-     external:
-        name: labkey_network

+ 17 - 14
config/labkey-compose22.3.yaml

@@ -31,20 +31,23 @@ services:
                     USER_ID: ${USER_ID}
                     GROUP_ID: ${GROUP_ID}
     volumes:
-      - ${LABKEY_DIR}/labkeywebapp:/usr/local/labkey/labkeywebapp
-      - ${LABKEY_DIR}/modules:/usr/local/labkey/modules
-      - ${LABKEY_DIR}/pipeline-lib:/usr/local/labkey/pipeline-lib
-      - ${LABKEY_DIR}/externalModules:/usr/local/labkey/externalModules
-      - ${LABKEY_DIR}/files:/usr/local/labkey/files
-      - ${TOMCAT_DIR}/bin/setenv.sh:/usr/local/tomcat/bin/setenv.sh
-      - ${TOMCAT_DIR}/conf/server.xml:/usr/local/tomcat/conf/server.xml
-      - ${TOMCAT_DIR}/conf/key.pem:/usr/local/tomcat/conf/key.pem
-      - ${TOMCAT_DIR}/conf/cert.pem:/usr/local/tomcat/conf/cert.pem
-      - ${TOMCAT_DIR}/conf/ca-chain.pem:/usr/local/tomcat/conf/ca-chain.pem
-      - ${LABKEY_DIR}/tomcat-lib/labkeyBootstrap.jar:/usr/local/tomcat/lib/labkeyBootstrap.jar
-      - ${LABKEY_DIR}/tomcat-lib/javax.activation.jar:/usr/local/tomcat/lib/javax.activation.jar
-      - ${LABKEY_DIR}/tomcat-lib/mail.jar:/usr/local/tomcat/lib/mail.jar
-      - ${LABKEY_DIR}/labkey.xml:/usr/local/tomcat/conf/Catalina/localhost/labkey.xml  
+      - ${LABKEY_DIR}:/usr/local/labkey
+      #- ${LABKEY_DIR}/labkeywebapp:/usr/local/labkey/labkeywebapp
+      #- ${LABKEY_DIR}/modules:/usr/local/labkey/modules
+      #- ${LABKEY_DIR}/pipeline-lib:/usr/local/labkey/pipeline-lib
+      #- ${LABKEY_DIR}/externalModules:/usr/local/labkey/externalModules
+      #- ${LABKEY_DIR}/files:/usr/local/labkey/files
+      - ${TOMCAT_DIR}:/usr/local/tomcat
+      #- ${TOMCAT_DIR}/conf/server.xml:/usr/local/tomcat/conf/server.xml
+      #- ${TOMCAT_DIR}/bin/setenv.sh:/usr/local/tomcat/bin/setenv.sh
+      #- ${TOMCAT_DIR}/bin/setenv.sh:/usr/local/tomcat/bin/setenv.sh
+      #- ${TOMCAT_DIR}/conf/key.pem:/usr/local/tomcat/conf/key.pem
+      #- ${TOMCAT_DIR}/conf/cert.pem:/usr/local/tomcat/conf/cert.pem
+      #- ${TOMCAT_DIR}/conf/ca-chain.pem:/usr/local/tomcat/conf/ca-chain.pem
+      #- ${LABKEY_DIR}/tomcat-lib/labkeyBootstrap.jar:/usr/local/tomcat/lib/labkeyBootstrap.jar
+      #- ${LABKEY_DIR}/tomcat-lib/javax.activation.jar:/usr/local/tomcat/lib/javax.activation.jar
+      #- ${LABKEY_DIR}/tomcat-lib/mail.jar:/usr/local/tomcat/lib/mail.jar
+      #- ${LABKEY_DIR}/labkey.xml:/usr/local/tomcat/conf/Catalina/localhost/labkey.xml  
     ports:
       - 8081:8080
       - 8444:8443

+ 0 - 1
labkey/pipeline-lib

@@ -1 +0,0 @@
-/home/labkey/software/src/LabKey22.3.2-3-community/pipeline-lib

+ 0 - 0
software/packages/LabKey22.3.2-3-community.tar.gz → packages/LabKey22.3.2-3-community.tar.gz


+ 0 - 0
labkey/labkey.xml.template → tomcat8/conf/Catalina/localhost/labkey.xml.template


+ 0 - 64
tomcat8/conf/NIXLJU-CA_chain.crt

@@ -1,64 +0,0 @@
------BEGIN CERTIFICATE-----
-MIIFdjCCA16gAwIBAgIBADANBgkqhkiG9w0BAQsFADBTMQswCQYDVQQGEwJTSTER
-MA8GA1UECAwIU2xvdmVuaWExEjAQBgNVBAcMCUxqdWJsamFuYTEMMAoGA1UECgwD
-TklYMQ8wDQYDVQQDDAZOSVgtQ0EwHhcNMjAwNjA3MTI0MjM1WhcNMjUwNjA3MTI0
-MjM1WjBCMQswCQYDVQQGEwJTSTERMA8GA1UECAwIU2xvdmVuaWExDDAKBgNVBAoM
-A05JWDESMBAGA1UEAwwJTklYTEpVLUNBMIICIjANBgkqhkiG9w0BAQEFAAOCA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frTY+VXug6W+HczvuibweUcm1LV28bwcSZXHP8C83+9f7ioAc6QLe1HRbOAG2sWa
-Urt2Hc6BXF9QyoLtp+ZsHU7FYG/0RMldr3OSdq8G104dN49VeW2t2AJhojYKEyIU
-o74cn049i3JPRl635kG1MT21QANH8YrAZArrpEg4w0toZeKM4nOsLkTFOk44zmTq
-OK86PaU5J330XrfCoxHTYAE6yUG4Jhbwh41gfHapmlbQs9QpMLfxiteJY2YFA4Hy
-/sYt7oSFtrUjKcQZyAlYeByvk6Zn0Tx6huxLTI5hkTEcAXfRVLQbPyyT978PbrdJ
-Uka1af3XtF6Zsy68Lq7HuLg7KXfMu+FzTIZy
------END CERTIFICATE-----

+ 0 - 1
tomcat8/conf/ca-chain.pem

@@ -1 +0,0 @@
-NIXLJU-CA_chain.crt

+ 0 - 1
tomcat8/conf/cert.pem

@@ -1 +0,0 @@
-localhost.crt

+ 0 - 1
tomcat8/conf/key.pem

@@ -1 +0,0 @@
-localhost.key

+ 0 - 133
tomcat8/conf/localhost.crt

@@ -1,133 +0,0 @@
-Certificate:
-    Data:
-        Version: 3 (0x2)
-        Serial Number: 4141 (0x102d)
-        Signature Algorithm: sha256WithRSAEncryption
-        Issuer: C=SI, ST=Slovenia, O=NIX, CN=NIXLJU-CA
-        Validity
-            Not Before: Apr  5 15:13:04 2022 GMT
-            Not After : Apr 10 15:13:04 2023 GMT
-        Subject: C=SI, ST=Slovenia, O=NIXLJU, CN=localhost
-        Subject Public Key Info:
-            Public Key Algorithm: rsaEncryption
-                RSA Public-Key: (4096 bit)
-                Modulus:
-                    00:dc:b0:e3:66:a1:40:b9:4c:f4:50:2d:4a:d6:0b:
-                    5b:7b:da:53:f0:00:12:af:86:52:03:2b:98:82:f7:
-                    17:ff:d6:a6:a4:28:73:d9:e9:eb:d1:09:25:24:ce:
-                    7d:01:23:23:e0:31:e4:ff:f3:02:61:6f:8f:96:37:
-                    cf:6d:35:9e:96:40:32:1f:4c:83:b5:15:5d:d2:66:
-                    98:01:b9:eb:c8:db:fb:c3:75:0f:af:36:6e:c4:f2:
-                    ea:4d:ee:ee:38:15:13:3f:34:a2:5d:62:df:84:6d:
-                    e5:40:d9:5d:44:f2:6d:b9:f9:9f:b1:66:4f:53:52:
-                    b5:04:04:0c:ea:b4:d5:15:f4:53:4e:01:61:81:8d:
-                    c1:06:34:f6:53:ef:d9:59:04:61:53:47:eb:f7:a5:
-                    00:d7:d6:9b:2e:e3:91:cb:22:a1:f6:38:2c:a6:6a:
-                    6d:b0:73:1d:83:9c:6d:cd:bb:5c:f7:5a:71:59:f0:
-                    42:1e:05:db:d9:e4:4d:2b:29:15:b2:dc:bf:25:27:
-                    e5:9b:05:01:bd:45:21:df:bb:9f:75:04:ab:1b:2c:
-                    fb:08:f0:55:01:69:c1:d3:28:c8:c3:5b:8c:91:83:
-                    03:2e:61:5a:5b:92:70:0b:53:b3:7d:d8:29:09:24:
-                    94:a3:54:2f:1e:2c:6b:f3:9e:3f:05:ec:7d:94:a5:
-                    25:b3:32:ee:cc:64:c2:a5:2f:17:56:6a:40:55:9b:
-                    ba:6b:4e:d5:58:36:bd:e3:04:02:38:07:6a:42:79:
-                    2e:02:cd:36:d4:a9:96:78:d4:0b:3e:ff:48:00:b0:
-                    96:93:5f:02:79:f3:58:41:f6:07:6d:f4:1e:0f:53:
-                    30:11:37:b5:68:ac:9e:c3:12:53:e7:ca:69:ad:70:
-                    22:4c:84:43:f8:23:fb:ae:85:0e:36:05:2b:a3:96:
-                    17:68:34:13:01:21:3e:2a:81:7e:c7:73:21:f9:54:
-                    05:53:da:ac:ac:8a:e5:58:36:44:1e:ae:0c:c9:f6:
-                    d6:a1:04:00:d9:0a:24:0b:06:42:85:6d:30:04:de:
-                    63:17:a4:31:96:1d:c5:74:c2:6d:76:74:67:af:4b:
-                    3f:ab:eb:e5:e7:70:c0:46:6e:fd:14:a1:58:84:24:
-                    c1:87:51:82:b0:10:f6:f0:d1:55:14:d8:4a:7e:2a:
-                    91:42:78:8b:6c:51:03:90:6a:6a:04:c3:10:d3:e1:
-                    3b:76:48:ff:94:0b:6a:4d:af:3d:83:ee:88:f4:11:
-                    ca:56:4f:5f:00:33:28:06:09:7d:13:23:36:b2:e8:
-                    f7:37:90:98:7e:a1:cd:9a:d6:8c:7e:5f:59:cf:18:
-                    1c:19:a0:00:a0:af:b9:df:0f:72:97:c6:a7:5c:2a:
-                    60:84:f3
-                Exponent: 65537 (0x10001)
-        X509v3 extensions:
-            X509v3 Basic Constraints: 
-                CA:FALSE
-            Netscape Cert Type: 
-                SSL Server
-            Netscape Comment: 
-                OpenSSL Generated Server Certificate
-            X509v3 Subject Key Identifier: 
-                77:78:5C:FE:B3:38:4C:EB:D6:D4:39:45:C3:3F:23:25:4C:44:CD:6E
-            X509v3 Authority Key Identifier: 
-                keyid:48:76:D5:45:21:38:71:C5:76:C6:5D:6F:3E:F8:9B:1A:33:D2:43:65
-                DirName:/C=SI/ST=Slovenia/L=Ljubljana/O=NIX/CN=NIX-CA
-                serial:00
-
-            X509v3 Key Usage: critical
-                Digital Signature, Key Encipherment
-            X509v3 Extended Key Usage: 
-                TLS Web Server Authentication
-    Signature Algorithm: sha256WithRSAEncryption
-         88:3c:f8:c2:09:e9:83:8d:21:30:4b:05:f6:9d:e1:7d:8e:5f:
-         d9:1c:04:b8:f0:d4:1a:c7:dd:57:ea:d6:f0:c6:74:2f:27:b6:
-         56:5f:2c:2c:32:26:b3:33:db:9b:49:74:b8:6c:b4:53:3c:11:
-         ed:1a:7f:60:d6:e4:bb:61:5f:6f:d9:85:bb:94:2e:c3:c1:8d:
-         90:aa:2a:8f:98:5e:f0:b4:fa:78:fa:2b:d3:8e:e8:64:da:06:
-         71:d4:43:8e:98:8d:68:fd:e8:f6:27:13:bb:3c:fc:84:56:18:
-         7f:5d:84:5c:e6:9d:37:eb:b4:29:b6:b6:5e:5e:6c:67:44:01:
-         10:71:0d:16:31:cb:51:68:a3:29:83:60:5e:ef:9f:98:65:8e:
-         73:69:7e:08:17:7c:05:f1:bb:79:c9:ad:6b:50:58:c8:5d:be:
-         6b:e4:07:27:23:d7:7e:e5:eb:6a:f4:f2:16:59:6a:0f:b1:fb:
-         77:74:71:7d:d7:82:ee:95:60:26:0c:67:55:a8:6c:b8:f9:c5:
-         62:93:a1:31:98:cc:3a:c7:f6:74:b5:5d:e2:2d:b2:ef:b3:52:
-         85:4c:4d:27:c5:a2:84:a5:de:dc:16:f1:bc:f2:9a:28:bc:4f:
-         0c:3f:db:a9:c5:ac:97:f7:18:6e:31:61:a5:88:72:b9:7c:2d:
-         a0:25:08:86:b9:be:b5:dd:54:2a:1f:af:a1:dd:e8:bf:28:fa:
-         2e:95:98:6b:29:29:6d:99:02:4c:58:1b:92:8d:83:b3:1d:25:
-         57:a8:26:8e:c4:e4:75:6c:39:65:fc:97:b5:a7:59:35:df:96:
-         26:10:6a:b2:22:42:56:70:ad:92:1d:12:cb:23:7c:c7:89:86:
-         1e:ed:da:25:77:a4:d3:56:e5:7a:10:d5:79:c0:8c:62:e6:0b:
-         28:8c:ac:df:e2:eb:2d:fe:0c:36:32:22:5f:b8:93:c5:13:01:
-         6e:42:41:69:2c:e3:eb:85:84:cb:a0:9c:9a:99:00:14:85:cc:
-         4a:0c:43:8b:fc:ad:61:f8:26:8f:a0:90:37:9a:c1:de:1b:f6:
-         ac:b2:30:d7:75:07:17:dc:e0:f3:c3:7a:f5:de:20:b7:86:a8:
-         36:1b:69:5c:ec:16:33:68:26:c4:09:19:72:2d:2e:a3:26:13:
-         82:4c:0c:1e:fa:f7:0b:d8:ba:23:ed:85:de:c8:ec:94:4c:05:
-         38:87:bb:c0:74:4a:bb:4e:c3:d7:34:e5:6a:dd:a9:fd:d4:89:
-         7d:14:36:32:d7:42:a1:1a:2e:f8:17:fb:1d:71:5d:cc:0b:33:
-         9e:c1:d6:80:70:da:5e:72:25:df:71:6e:04:a2:9e:c7:fc:f7:
-         24:76:ea:94:90:db:86:eb
------BEGIN CERTIFICATE-----
-MIIGHTCCBAWgAwIBAgICEC0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