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

Issues with newline in openssl #1

Closed
bastelflp opened this issue Feb 16, 2020 · 2 comments
Closed

Issues with newline in openssl #1

bastelflp opened this issue Feb 16, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@bastelflp
Copy link
Owner

Issues

In pub_hex, pub_exp = re.search(r"modulus:\n\s+00:([a-f0-9\:\s]+?)\npublicExponent: ([0-9]+)",out.decode('utf8'), re.MULTILINE|re.DOTALL).groups()

  • Error 'NoneType' object has no attribute 'groups'

And after console log outout Signing certificate...

  • Error: creating new cert :: authorizations for these names not found or expired

Cause

  • Openssl returned newline symbols \r\n instead of \n which caused the regexp in acme-tiny to fail.
  • Python ssl version: 'OpenSSL 1.0.2q 20 Nov 2018' (which is strange, as everything was working in 2019).

Solution

  • Use \r\n instead of \n in regexp search in acme-tiny for output of openssl.
@bastelflp bastelflp self-assigned this Feb 16, 2020
@bastelflp bastelflp added the bug Something isn't working label Feb 16, 2020
@bastelflp
Copy link
Owner Author

Solved by ca923e8

@bastelflp
Copy link
Owner Author

Related to diafygi#264

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