Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Latest commit

 

History

History
37 lines (24 loc) · 776 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 776 Bytes

Usage

First, choose a secure location to store pki, e.g. "~/.verysecure/strongswan"

PKIDIR=~/.verysecure/strongswan

Certificates (and keys) can expire. For the ease of future renewal, each certificate and key is suffixed with today's timestamp.

Each of the three scripts, if run with no arguments, prints its usage and exits.

Create CA

Currently a $PKIDIR has only one ca.

$CANAME=only used as an identifier
./ca-key.sh $PKIDIR caname

CA certificates can expire. A symlink, representing currently used certificate and key, points to the most recently created ones with a timestamp.

Generate Server Key

./server-key.sh $PKIDIR server

Generate Client Key

./client-key.sh $PKIDIR client email