{"action":"created","issue":{"url":"https://api.github.com/repos/Netflix/lemur/issues/794","repository_url":"https://api.github.com/repos/Netflix/lemur","labels_url":"https://api.github.com/repos/Netflix/lemur/issues/794/labels{/name}","comments_url":"https://api.github.com/repos/Netflix/lemur/issues/794/comments","events_url":"https://api.github.com/repos/Netflix/lemur/issues/794/events","html_url":"https://github.com/Netflix/lemur/issues/794","id":228863034,"number":794,"title":"adding Digicert CA errors on opening cert","user":{"login":"awesomazing","id":13123965,"avatar_url":"https://avatars0.githubusercontent.com/u/13123965?v=3","gravatar_id":"","url":"https://api.github.com/users/awesomazing","html_url":"https://github.com/awesomazing","followers_url":"https://api.github.com/users/awesomazing/followers","following_url":"https://api.github.com/users/awesomazing/following{/other_user}","gists_url":"https://api.github.com/users/awesomazing/gists{/gist_id}","starred_url":"https://api.github.com/users/awesomazing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesomazing/subscriptions","organizations_url":"https://api.github.com/users/awesomazing/orgs","repos_url":"https://api.github.com/users/awesomazing/repos","events_url":"https://api.github.com/users/awesomazing/events{/privacy}","received_events_url":"https://api.github.com/users/awesomazing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-05-15T22:21:23Z","updated_at":"2017-05-16T16:55:39Z","closed_at":null,"body":"I am trying to add an authority for Digicert when I click create I receive the following error. I have the configuration pointed to a copy of the DigicertrootCA that is in PEM format and is readable with openssl. Not sure how to proceed. Let me know if more information is needed.\r\n\r\n\r\nUnable to load certificate\r\nTraceback (most recent call last):\r\n  File \"/www/lemur/lemur/common/schema.py\", line 158, in decorated_function\r\n    resp = f(*args, **kwargs)\r\n  File \"/www/lemur/lemur/authorities/views.py\", line 223, in post\r\n    return service.create(**data)\r\n  File \"/www/lemur/lemur/authorities/service.py\", line 108, in create\r\n    cert = upload(**kwargs)\r\n  File \"/www/lemur/lemur/certificates/service.py\", line 220, in upload\r\n    cert = Certificate(**kwargs)\r\n  File \"<string>\", line 4, in __init__\r\n  File \"/www/lemur/lib/python3.4/site-packages/sqlalchemy/orm/state.py\", line 414, in _initialize_instance\r\n    manager.dispatch.init_failure(self, args, kwargs)\r\n  File \"/www/lemur/lib/python3.4/site-packages/sqlalchemy/util/langhelpers.py\", line 66, in __exit__\r\n    compat.reraise(exc_type, exc_value, exc_tb)\r\n  File \"/www/lemur/lib/python3.4/site-packages/sqlalchemy/util/compat.py\", line 187, in reraise\r\n    raise value\r\n  File \"/www/lemur/lib/python3.4/site-packages/sqlalchemy/orm/state.py\", line 411, in _initialize_instance\r\n    return manager.original_init(*mixed[1:], **kwargs)\r\n  File \"/www/lemur/lemur/certificates/models.py\", line 125, in __init__\r\n    cert = lemur.common.utils.parse_certificate(kwargs['body'])\r\n  File \"/www/lemur/lemur/common/utils.py\", line 53, in parse_certificate\r\n    return x509.load_pem_x509_certificate(body, default_backend())\r\n  File \"/www/lemur/lib/python3.4/site-packages/cryptography/x509/base.py\", line 43, in load_pem_x509_certificate\r\n    return backend.load_pem_x509_certificate(data)\r\n  File \"/www/lemur/lib/python3.4/site-packages/cryptography/hazmat/backends/multibackend.py\", line 341, in load_pem_x509_certificate\r\n    return b.load_pem_x509_certificate(data)\r\n  File \"/www/lemur/lib/python3.4/site-packages/cryptography/hazmat/backends/openssl/backend.py\", line 1175, in load_pem_x509_certificate\r\n    raise ValueError(\"Unable to load certificate\")\r\nValueError: Unable to load certificate\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Netflix/lemur/issues/comments/301846292","html_url":"https://github.com/Netflix/lemur/issues/794#issuecomment-301846292","issue_url":"https://api.github.com/repos/Netflix/lemur/issues/794","id":301846292,"user":{"login":"awesomazing","id":13123965,"avatar_url":"https://avatars0.githubusercontent.com/u/13123965?v=3","gravatar_id":"","url":"https://api.github.com/users/awesomazing","html_url":"https://github.com/awesomazing","followers_url":"https://api.github.com/users/awesomazing/followers","following_url":"https://api.github.com/users/awesomazing/following{/other_user}","gists_url":"https://api.github.com/users/awesomazing/gists{/gist_id}","starred_url":"https://api.github.com/users/awesomazing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awesomazing/subscriptions","organizations_url":"https://api.github.com/users/awesomazing/orgs","repos_url":"https://api.github.com/users/awesomazing/repos","events_url":"https://api.github.com/users/awesomazing/events{/privacy}","received_events_url":"https://api.github.com/users/awesomazing/received_events","type":"User","site_admin":false},"created_at":"2017-05-16T16:55:39Z","updated_at":"2017-05-16T16:55:39Z","body":"This is the configuration settings that I have in the conf file the DOC/GIT differs so I included everything that was on the creators git page. This still fails during the initial CA creation complaining that it cannot load the certificate.\r\n\r\n```DIGICERT_URL = 'https://api.digicert.com/'\r\nDIGICERT_ACCOUNT_ID = 'XXXXXX'\r\nDIGICERT_API_KEY = 'XXXXXXXXXXXXXXXXXXXXXXXX'\r\nDIGICERT_REQUEST_TYPE = 'SSL_PLUS'\r\nDIGICERT_ORG_ID = 'XXXXXX'\r\nDIGICERT_ROOT = 'MIIGsDCCBZigAwIBAgIQAWXPzBkXS2mHJkFZyuDHnjANBgkqhkiG9w0BAQUFADBhMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSAwHgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBDQTAeFw0wNjExMTAwMDAwMDBaFw0yMTExMTAwMDAwMDBaMF4xCzAJBgNVBAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5jb20xHTAbBgNVBAMTFERpZ2lDZXJ0IEdsb2JhbCBDQS0xMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA8iUcMWe3U+uoT6X95s8wUq8QNQIMbMT/9DyiihlzABTaK2rBaDBL/xs21MjdJm4skBZxaj6PZ7CSlqyL3iiXo/uwpSzizKeLy7kYUardBn+bj/ZsjL4EDHebWVB7UA4FX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