0
0
mirror of https://github.com/termux-pacman/glibc-packages.git synced 2024-11-27 06:08:57 +00:00
glibc-packages/gpkg/openssl/ca-dir.patch
Ivan Max 9dc45be76e
new packages to gpkg (#85)
gpkg/libacl: new package
gpkg/liblzma: new package
gpkg/attr: new package
gpkg/libnghttp2: new package
gpkg/libssh2: new package
gpkg/openssl: new package
gpkg/zlib: new package
gpkg/liblz4: new package
gpkg/zstd: new package
gpkg/expat: new package
gpkg/libidn2: new package
gpkg/libpsl: new package
gpkg/publicsuffix-list: new package
2023-09-02 23:21:02 +03:00

32 lines
1.1 KiB
Diff

--- a/apps/CA.pl.in
+++ b/apps/CA.pl.in
@@ -29,7 +29,7 @@
my $PKCS12 = "$openssl pkcs12";
# Default values for various configuration settings.
-my $CATOP = "./demoCA";
+my $CATOP = "@TERMUX_PREFIX@/etc/ssl";
my $CAKEY = "cakey.pem";
my $CAREQ = "careq.pem";
my $CACERT = "cacert.pem";
--- a/apps/openssl.cnf
+++ b/apps/openssl.cnf
@@ -79,7 +79,7 @@
####################################################################
[ CA_default ]
-dir = ./demoCA # Where everything is kept
+dir = @TERMUX_PREFIX@/etc/ssl # Where everything is kept
certs = $dir/certs # Where the issued certs are kept
crl_dir = $dir/crl # Where the issued crl are kept
database = $dir/index.txt # database index file.
@@ -309,7 +309,7 @@
[ tsa_config1 ]
# These are used by the TSA reply generation only.
-dir = ./demoCA # TSA root directory
+dir = @TERMUX_PREFIX@/etc/ssl # TSA root directory
serial = $dir/tsaserial # The current serial number (mandatory)
crypto_device = builtin # OpenSSL engine to use for signing
signer_cert = $dir/tsacert.pem # The TSA signing certificate