{"action":"closed","issue":{"url":"https://api.github.com/repos/Netflix/lemur/issues/1490","repository_url":"https://api.github.com/repos/Netflix/lemur","labels_url":"https://api.github.com/repos/Netflix/lemur/issues/1490/labels{/name}","comments_url":"https://api.github.com/repos/Netflix/lemur/issues/1490/comments","events_url":"https://api.github.com/repos/Netflix/lemur/issues/1490/events","html_url":"https://github.com/Netflix/lemur/issues/1490","id":345775329,"node_id":"MDU6SXNzdWUzNDU3NzUzMjk=","number":1490,"title":"issue in creating new certificate(Digicert)","user":{"login":"fruitRollUps","id":32313084,"node_id":"MDQ6VXNlcjMyMzEzMDg0","avatar_url":"https://avatars3.githubusercontent.com/u/32313084?v=4","gravatar_id":"","url":"https://api.github.com/users/fruitRollUps","html_url":"https://github.com/fruitRollUps","followers_url":"https://api.github.com/users/fruitRollUps/followers","following_url":"https://api.github.com/users/fruitRollUps/following{/other_user}","gists_url":"https://api.github.com/users/fruitRollUps/gists{/gist_id}","starred_url":"https://api.github.com/users/fruitRollUps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fruitRollUps/subscriptions","organizations_url":"https://api.github.com/users/fruitRollUps/orgs","repos_url":"https://api.github.com/users/fruitRollUps/repos","events_url":"https://api.github.com/users/fruitRollUps/events{/privacy}","received_events_url":"https://api.github.com/users/fruitRollUps/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-07-30T14:11:50Z","updated_at":"2018-07-30T18:43:55Z","closed_at":"2018-07-30T18:43:55Z","author_association":"NONE","body":"I am having trouble retrieving a certificate generated by Digicert through a custom module(using Digicert plugin https://github.com/opendns/lemur-digicert) from Lemur Databse. We have a module that requests/retrieves certificates from Digicert, we are trying to use Lemur as a GUI for that module. I was able to interface directly with Digicert successfully, but when I try to interface Lemur with our module, I am able to get the certificate and I can see the certificate in the Lemur database but the 'certificates' page on Lemur GUI does't load the certificates, not even the ones created earlier, successfully with digicert directly, following is the traceback of that action. Also, I noticed that when I create a certificate through our custom module, I don't see the 'certificate created successfully' notification pop up on the top right corner of Lemur GUI and the form to create the certificate stays there. \r\n\r\nI tried replacing the 'body' value in the table 'certificates' in the database for the one not working with the one created directly from Digicert and then everything works just fine. I thought the certificate body might be having an issue but when I try to parse it using 'openssl' command, it works just fine. Help appreciated, thanks in advance.\r\n \r\nUnknown SubAltName type: <OtherName(type_id=<ObjectIdentifier(oid=1.3.101.128, name=Unknown OID)>, value=b'\\x0c\\x0etest-system-ID')>\r\n[2018-07-24 18:34:40,901] ERROR in app: Exception on /api/1/certificates [POST]\r\nTraceback (most recent call last):\r\n  File \"/www/lemur/lib/python3.6/site-packages/flask/app.py\", line 1612, in full_dispatch_request\r\n    rv = self.dispatch_request()\r\n  File \"/www/lemur/lib/python3.6/site-packages/flask/app.py\", line 1598, in dispatch_request\r\n    return self.view_functions[rule.endpoint](**req.view_args)\r\n  File \"/www/lemur/lib/python3.6/site-packages/flask_restful/__init__.py\", line 484, in wrapper\r\n    return self.make_response(data, code, headers=headers)\r\n  File \"/www/lemur/lib/python3.6/site-packages/flask_restful/__init__.py\", line 513, in make_response\r\n    resp = self.representations[mediatype](data, *args, **kwargs)\r\n  File \"/www/lemur/lib/python3.6/site-packages/flask_restful/representations/json.py\", line 21, in output_json\r\n    dumped = dumps(data, **settings) + \"\\n\"\r\n  File \"/usr/lib/python3.6/json/__init__.py\", line 231, in dumps\r\n    return _default_encoder.encode(obj)\r\n  File \"/usr/lib/python3.6/json/encoder.py\", line 199, in encode\r\n    chunks = self.iterencode(o, _one_shot=True)\r\n  File \"/usr/lib/python3.6/json/encoder.py\", line 257, in iterencode\r\n    return _iterencode(o, 0)\r\n  File \"/usr/lib/python3.6/json/encoder.py\", line 180, in default\r\n    o.__class__.__name__)\r\nTypeError: Object of type 'bytes' is not JSON serializable\r\nException on /api/1/certificates [POST]\r\nTraceback (most recent call last):\r\n  File \"/www/lemur/lib/python3.6/site-packages/flask/app.py\", line 1612, in full_dispatch_request\r\n    rv = self.dispatch_request()\r\n  File \"/www/lemur/lib/python3.6/site-packages/flask/app.py\", line 1598, in dispatch_request\r\n    return self.view_functions[rule.endpoint](**req.view_args)\r\n  File \"/www/lemur/lib/python3.6/site-packages/flask_restful/__init__.py\", line 484, in wrapper\r\n    return self.make_response(data, code, headers=headers)\r\n  File \"/www/lemur/lib/python3.6/site-packages/flask_restful/__init__.py\", line 513, in make_response\r\n    resp = self.representations[mediatype](data, *args, **kwargs)\r\n  File \"/www/lemur/lib/python3.6/site-packages/flask_restful/representations/json.py\", line 21, in output_json\r\n    dumped = dumps(data, **settings) + \"\\n\"\r\n  File \"/usr/lib/python3.6/json/__init__.py\", line 231, in dumps\r\n    return _default_encoder.encode(obj)\r\n  File \"/usr/lib/python3.6/json/encoder.py\", line 199, in encode\r\n    chunks = self.iterencode(o, _one_shot=True)\r\n  File \"/usr/lib/python3.6/json/encoder.py\", line 257, in iterencode\r\n    return _iterencode(o, 0)\r\n  File \"/usr/lib/python3.6/json/encoder.py\", line 180, in default\r\n    o.__class__.__name__)\r\nTypeError: Object of type 'bytes' is not JSON serializable"}}
{"actor":{"display_login":"fruitRollUps"}}