X-Git-Url: https://iankelling.org/git/?p=vpn-setup;a=blobdiff_plain;f=client-cert-helper;h=6589c40b15f1f243a18d0b724afb18b7384b57b6;hp=d5bdcdce2aee363eaaf9dc2f19647873c95a7d5b;hb=HEAD;hpb=e6b728a634f243aab009758f2f6741c3f313f153 diff --git a/client-cert-helper b/client-cert-helper index d5bdcdc..4da41eb 100755 --- a/client-cert-helper +++ b/client-cert-helper @@ -1,4 +1,25 @@ #!/bin/bash +# I, Ian Kelling, follow the GNU license recommendations at +# https://www.gnu.org/licenses/license-recommendations.en.html. They +# recommend that small programs, < 300 lines, be licensed under the +# Apache License 2.0. This file contains or is part of one or more small +# programs. If a small program grows beyond 300 lines, I plan to switch +# its license to GPL. + +# Copyright 2024 Ian Kelling + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at + +# http://www.apache.org/licenses/LICENSE-2.0 + +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -eE -o pipefail # Outputs the keyfiles to stdout as tar.gz @@ -27,7 +48,7 @@ cafile=$server_dir/ca-$name.crt ### begin section roughly copied from vpn-server-setup rsadir=/etc/openvpn/easy-rsa-$name -new=true +new=true # newer easy-rsa version keyfiles=( $rsadir/pki/private/$common_name.key $rsadir/pki/issued/$common_name.crt