[IMP] Add new files
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#-------------------------------------------------------------------------------
|
||||
# Name: Samba Manage PKI
|
||||
# Purpose: Generate and manage Samba PKI
|
||||
#
|
||||
# Author: Kevin Guerineau
|
||||
#
|
||||
# Created: 07/05/2024
|
||||
# Copyright: (c) kevin 2024
|
||||
# Licence: <your licence>
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
from optparse import OptionParser
|
||||
|
||||
from common import *
|
||||
|
||||
def main():
|
||||
parser = OptionParser()
|
||||
|
||||
parser.add_option('--init', dest="init", action="store_false", help="Create PKI")
|
||||
parser.add_option('--create-intermediate', dest="create_intermediate", action="store_false", help="Create an intermediate CA")
|
||||
parser.add_option('--create-dc-cert', dest="create_dc_cert", action="store_false", help="Create a certificat for a Domain Controler")
|
||||
|
||||
(options, args) = parser.parse_args()
|
||||
|
||||
if options.init:
|
||||
create_openssl_config()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
Reference in New Issue
Block a user