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

Fix GA_KEY_CONTENT OpenSSL crypto error #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Apr 30, 2020

  1. Fix GA_KEY_CONTENT OpenSSL crypto error

    OpenSSL.crypto.load_privatekey can't detect start line due to a
    str.replace() for '\n' and '\r'.
    json.loads() can't handle '\n' and '\r' cause it thinks they are
    control character.
    Therefore '\n' and '\r' have to be double escape rather than deleted.
    OpenSSL.crypto.load_privatekey() can't handle '\r' either,
    so a private_key with '\r' wouldn't work anyway. ¯\_(ツ)_/¯
    
    Error:
    OpenSSL.crypto.Error: [('PEM routines', 'get_name', 'no start line')]
    
    Ref:
    tomdyson#25
    https://stackoverflow.com/a/45571017
    kleberbaum committed Apr 30, 2020
    Configuration menu
    Copy the full SHA
    fee48c1 View commit details
    Browse the repository at this point in the history