You are not logged in.

#1 2015-09-07 22:07:51

kanu
Member
Registered: 2013-06-13
Posts: 1

Error/typo on wiki or just cant find what package contains make-cadir?

so following along here, https://wiki.archlinux.org/index.php/Cr … sa_Scripts

i install easy-rsa and than i type make-cadir but its not installed, any idea what package this comes from? i don't see this reference anywhere on the forums and searching online i dont see much reference to this application/script anywhere really.

it doesn't appear to be installed on a system i did this with in may so im not sure now how i did it back than.

thanks.

Offline

#2 2015-09-08 06:45:19

mauritiusdadd
Member
From: Benevento, Italy
Registered: 2013-10-27
Posts: 776

Re: Error/typo on wiki or just cant find what package contains make-cadir?

make-cadir is not provided by upstream: it seems that the script is an addition of the Ubuntu's packager in order "to simplify the use of easy-rsa in Debian". The wiki should be updated.

--edit[0]: for the record, this is the content of the script:

#!/bin/sh

# This script creates a new directory in order to be used
# with the tools from the easy-rsa project.
#
# Copyright (C) 2012 Alberto Gonzalez Iniesta
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

set -e

usage() {
	echo "Usage: $0 DIRECTORY"
	echo "Creates a *new* directory and prepares it to be used as a (CA) key management directory (to create and store keys and certificates)."
	exit 1
}

[ "$#" -ne 1 ] && usage
[ -e "$1" ] && { echo "$1 exists. Aborting." ; usage ; }

mkdir -p "$1"
chmod 700 "$1"
ln -s /usr/share/easy-rsa/* "$1"
rm -f "$1"/vars "$1"/*.cnf
cp /usr/share/easy-rsa/vars /usr/share/easy-rsa/*.cnf "$1"

--edit[1]: added a section to the discussion page: https://wiki.archlinux.org/index.php/Ta … make-cadir

Last edited by mauritiusdadd (2015-09-08 07:24:20)


About me - github

-- When you have eliminated the impossible, whatever remains, however improbable, must be the truth -- Spock | Sherlock Holmes

Offline

Board footer

Powered by FluxBB