[IMP] Lot of improvements

This commit is contained in:
Kevin Guerineau
2024-05-17 17:29:47 +02:00
parent 61d50ec61e
commit 9c58afe0f7
6 changed files with 250 additions and 33 deletions
+8 -4
View File
@@ -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):