Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate_key.py create new keytab secret.key file #5

Closed
schnipdip opened this issue Aug 26, 2020 · 0 comments
Closed

generate_key.py create new keytab secret.key file #5

schnipdip opened this issue Aug 26, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@schnipdip
Copy link
Owner

Issue:

Create the secret.key file if it doesn't already exist.

Possible Resolution:

 with open('secret.key', 'wb+') as key_file:
     if os.stat(key_file).st_size == 0:
         key_file.write(key)
     else:
         print ('''Key already exits. If you want to generate a new key delete the key in the secrets.key file.''')
         exit(0)

@schnipdip schnipdip added the bug Something isn't working label Aug 26, 2020
@schnipdip schnipdip self-assigned this Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant