1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

selftest: add config and script to create a samba.example.com CA

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
This commit is contained in:
Stefan Metzmacher 2016-01-09 01:08:02 +01:00
parent b0bdbeeef4
commit bdc1f036a8
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,21 @@
#
# All passwords are "1234"
#
CRL_HTTP_BASE="http://www.samba.example.com/crls"
CRL_SSH_BASE="none@samba.example.com:/none/crls"
DNS_DOMAIN="samba.example.com"
CA_BITS="8192"
DC_BITS="4096"
USER_BITS="2048"
# 20 years should be enough
CA_DAYS="7300"
CRL_DAYS="7300"
DC_DAYS="7300"
USER_DAYS="7300"
COUNTRY_NAME="US"
STATE_NAME="SambaState"
LOCALITY_NAME="SambaCity"
ORGANIZATION_NAME="SambaSelfTesting"

View File

@ -0,0 +1,18 @@
#!/bin/bash
#
set -e
set -u
set -x
#
# All passwords are "1234"
#
./manage-ca.sh manage-CA-samba.example.com.cnf init_ca
./manage-ca.sh manage-CA-samba.example.com.cnf create_dc localdc.samba.example.com 0123456789ABCDEF
./manage-ca.sh manage-CA-samba.example.com.cnf create_user administrator@samba.example.com
./manage-ca.sh manage-CA-samba.example.com.cnf create_dc addc.addom.samba.example.com 0123456789ABCDEF
./manage-ca.sh manage-CA-samba.example.com.cnf create_user administrator@addom.samba.example.com