summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhanibek Adilbekov2018-11-19 12:01:08 +0600
committerZhanibek Adilbekov2018-11-19 12:05:57 +0600
commitdb9fb6f61395aedbf71a6c616c2cd7e41a879dde (patch)
tree30d3dd616c13f79925895611e79544572cfb3bdd
parentb68900a856ad2f4d226ba68bd4ba5c86e1b351ff (diff)
downloadaur-db9fb6f61395aedbf71a6c616c2cd7e41a879dde.tar.gz
Added trust command to cert auto-generation script
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
-rwxr-xr-xpixelserv-ca-init.sh6
3 files changed, 10 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e9ffc97f852..e3b8052f388 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = pixelserv-tls
pkgdesc = A tiny bespoke webserver for adblock with HTTP/1.1 and HTTPS support
pkgver = 2.2.0
- pkgrel = 2
+ pkgrel = 3
url = https://kazoo.ga/pixelserv-tls/
install = pixelserv-tls.install
arch = any
@@ -11,7 +11,7 @@ pkgbase = pixelserv-tls
source = pixelserv-ca-init.sh
source = pixelserv-tls.service
md5sums = fee16251b14fef4509476685e364c360
- md5sums = d53cf6340558d14eeb586a1129a87e9d
+ md5sums = 1bc930094d645b39aadf2861197cdb12
md5sums = 70e0895550f301303e09eb5dfabdde42
pkgname = pixelserv-tls
diff --git a/PKGBUILD b/PKGBUILD
index 652d2e0e64f..60890d8307d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Zhanibek Adilbekov <zhanibek.adilbekov@protornmail.com>
pkgname=pixelserv-tls
pkgver=2.2.0
-pkgrel=2
+pkgrel=3
pkgdesc="A tiny bespoke webserver for adblock with HTTP/1.1 and HTTPS support"
arch=('any')
url="https://kazoo.ga/pixelserv-tls/"
@@ -13,7 +13,7 @@ source=(
"pixelserv-ca-init.sh"
"pixelserv-tls.service")
md5sums=('fee16251b14fef4509476685e364c360'
- 'd53cf6340558d14eeb586a1129a87e9d'
+ '1bc930094d645b39aadf2861197cdb12'
'70e0895550f301303e09eb5dfabdde42')
diff --git a/pixelserv-ca-init.sh b/pixelserv-ca-init.sh
index 2395cc1ea76..9f6470a5e42 100755
--- a/pixelserv-ca-init.sh
+++ b/pixelserv-ca-init.sh
@@ -1,4 +1,10 @@
#!/bin/sh
+
+# generate cert
openssl genrsa -out /var/cache/pixelserv/ca.key 1024
openssl req -key /var/cache/pixelserv/ca.key -new -x509 -days 3650 -sha256 \
-extensions v3_ca -out /var/cache/pixelserv/ca.crt -subj "/CN=Pixelserv CA"
+
+# trust cert
+cp /var/cache/pixelserv/ca.crt /usr/share/ca-certificates/trust-source/anchors/ca.pixelserv.crt
+trust extract-compat