Closed pki-bot closed 4 years ago
Comment from cheimes (@tiran) at 2018-04-30 10:43:42
data
attribute(Pdb) pp vars(data)
{'adminCertRequest': 'MIICjTC...',
'adminCertRequestType': 'pkcs10',
'adminEmail': 'root@localhost',
'adminName': 'admin',
'adminPassword': '...',
'adminProfileID': 'caAdminCert',
'adminSubjectDN': 'cn=ipa-ca-agent,O=IPA.EXAMPLE',
'adminUID': 'admin',
'backupFile': '/etc/pki/pki-tomcat/alias/ca_backup_keys.p12',
'backupKeys': 'true',
'backupPassword': '...',
'baseDN': 'o=ipaca',
'bindDN': 'cn=Directory Manager',
'bindpwd': '...',
'createNewDB': 'true',
'createSigningCertRecord': 'true',
'database': 'ipaca',
'dsHost': 'master.ipa.example',
'dsPort': '389',
'external': True,
'generateServerCert': 'true',
'generateSubsystemCert': 'true',
'hierarchy': 'join',
'importAdminCert': 'false',
'isClone': 'false',
'issuingCA': 'External CA',
'pin': 'sBvvU28w4rhDnmXdshN0',
'removeData': 'true',
'replicationPassword': '',
'secureConn': 'false',
'securityDomainName': 'IPA',
'securityDomainType': 'newdomain',
'sharedDB': 'false',
'signingCertSerialNumber': '1',
'standAlone': False,
'startingCRLNumber': '0',
'subsystemName': 'CA master.ipa.example 8443',
'systemCerts': [<pki.system.SystemCertData object at 0x7fbf211f0d68>,
<pki.system.SystemCertData object at 0x7fbf2117e860>,
<pki.system.SystemCertData object at 0x7fbf2117e6a0>,
<pki.system.SystemCertData object at 0x7fbf2117e438>,
<pki.system.SystemCertData object at 0x7fbf2117e518>],
'systemCertsImported': False,
'token': 'Internal Key Storage Token'}
pki.system.SystemCertData
object(Pdb) pp vars(data.systemCerts[0])
{'cert': b'-----BEGIN CERTIFICATE-----\nMIIDHzCCAg...',
'keyAlgorithm': 'SHA256withRSA',
'keySize': '2048',
'keyType': 'rsa',
'nickname': 'caSigningCert cert-pki-ca',
'signingAlgorithm': 'SHA256withRSA',
'subjectDN': 'CN=Certificate '
'Authority,O=IPA.EXAMPLE',
'tag': 'signing',
'token': 'Internal Key Storage Token'}
As you can see, the cert
attribute is bytes. Looks like the JSON encoder is unable to handle that case.
Comment from cheimes (@tiran) at 2018-04-30 10:43:42
Metadata Update from @tiran:
Comment from cheimes (@tiran) at 2018-04-30 11:36:47
Comment from cheimes (@tiran) at 2018-04-30 11:36:51
Metadata Update from @tiran:
Comment from cheimes (@tiran) at 2018-05-02 10:31:14
Metadata Update from @tiran:
This issue was migrated from Pagure Issue #3008. Originally filed by cheimes (@tiran) on 2018-04-30 09:56:22:
WIth 3005 and 3007 fixed, I'm running into another Python 3-related issue in external CA installation: