summaryrefslogtreecommitdiff
path: root/tools/p11-kit-extract-trust.in
blob: cc7e5fa9fb36328e283fe1378e90238a2e10e946 (plain)
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
#!/bin/sh

# This script is a placeholder designed to be replaced when this software
# has been customized for distribution.

echo "WARNING: This placeholder extract-trust command has not been customized"
echo "by your distribution or administrator. Extracting trust infromation to"
echo "the following example locations:"
echo
echo "  ~/extract-trust-example/openssl-bundle.pem"
echo "  ~/extract-trust-example/server-auth-bundle.pem"
echo "  ~/extract-trust-example/cacerts"

DEST=~/extract-trust-example

# These are nested autoconf variables
prefix=@prefix@
exec_prefix=@exec_prefix@

mkdir -p $DEST

@bindir@/p11-kit extract --format=openssl-bundle --filter=ca-anchors \
	--overwrite $DEST/openssl-bundle.pem
@bindir@/p11-kit extract --format=pem-bundle --filter=ca-anchors --overwrite \
	--purpose server-auth $DEST/server-auth-bundle.pem
@bindir@/p11-kit extract --format=java-cacerts --filter=ca-anchors --overwrite \
	--purpose server-auth $DEST/cacerts