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:
parent
b0bdbeeef4
commit
bdc1f036a8
21
selftest/manage-ca/manage-CA-samba.example.com.cnf
Normal file
21
selftest/manage-ca/manage-CA-samba.example.com.cnf
Normal 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"
|
18
selftest/manage-ca/manage-CA-samba.example.com.sh
Normal file
18
selftest/manage-ca/manage-CA-samba.example.com.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user