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

Mis-typed input gives AttributeError: 'NoneType' object has no attribute 'groups' #2

Closed
paulirwin opened this issue Jun 12, 2015 · 0 comments

Comments

@paulirwin
Copy link

If you mis-type the csr file path when executing the script, you get an unhelpful and nasty error. It should tell you that it can't find the file rather than giving this error:

paul@ubuntu:~/letsencrypt$ python sign_csr.py user.pub filethatdoesntexist.csr > signed.crt
Reading pubkey file...
Found public key!
Reading csr file...
Traceback (most recent call last):
  File "sign_csr.py", line 331, in <module>
    signed_crt = sign_csr(args.pubkey_path, args.csr_path)
  File "sign_csr.py", line 60, in sign_csr
    domain = re.search("Subject:.*? CN=([^\s,;/]+).*?", out, re.MULTILINE|re.DOTALL).groups()[0]
AttributeError: 'NoneType' object has no attribute 'groups'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant