Merge pull request #12 from cottonbeckfield/yaml_fix

Changing yaml.load to yaml.safe_load per:
pull/13/head
Cotton Beckfield 2020-01-19 20:02:38 -08:00 committed by GitHub
commit 9eef54e866
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
dist/*
CSR_Generator.egg-info/*
*.log

View File

@ -234,7 +234,7 @@ class Certificate:
"""Parse YAML file and return object generated
"""
with open(yaml_file, 'r') as stream:
cfg = yaml.load(stream)
cfg = yaml.safe_load(stream)
return cfg
def generateKey(self, type, bits):