[IMP] Lot of improvements
This commit is contained in:
@@ -22,19 +22,19 @@ config.read('samba-pki-tools.ini')
|
||||
class Printing():
|
||||
|
||||
def information(string):
|
||||
print(Fore.CYAN + string)
|
||||
print(Fore.CYAN + '[i] ' + string)
|
||||
return print(Style.RESET_ALL)
|
||||
|
||||
def success(string):
|
||||
print(Fore.GREEN + string)
|
||||
print(Fore.GREEN + '[+] '+ string)
|
||||
return print(Style.RESET_ALL)
|
||||
|
||||
def warning(string):
|
||||
print(Fore.YELLOW + string)
|
||||
print(Fore.YELLOW + '[!] ' + string)
|
||||
return print(Style.RESET_ALL)
|
||||
|
||||
def error(string):
|
||||
print(Fore.RED + string)
|
||||
print(Fore.RED + '[-] ' + string)
|
||||
return print(Style.RESET_ALL)
|
||||
|
||||
class TisPKI:
|
||||
@@ -107,6 +107,10 @@ class TisPKI:
|
||||
name = name.replace(' ','_')
|
||||
return os.path.join(TisPKI.intermediate_keyout_path(name),f'{name}_intermediate_ca.key')
|
||||
|
||||
def intermediate_ca_crlfile(name):
|
||||
name = name.replace(' ','_')
|
||||
return os.path.join(TisPKI.intermediate_crl_path(name),f'{name}.crl')
|
||||
|
||||
|
||||
|
||||
def check_directories(path,verbose=False):
|
||||
|
||||
Reference in New Issue
Block a user