Forum Discussion
Akash9920
Jul 27, 2020Nimbostratus
error creating client SSL key and certificate [error: (01070712)unknown format or security type ]
HI, I am facing issue while trying to create the SSL client key and certificate. it giving me the following error:
The error is thrown while attempting to create the key/certificate,
mgmt.shared.file_transfer.uploads.upload_file(p_key)
mgmt.shared.file_transfer.uploads.upload_file(p_cert)
key_sourcepath = 'file:/var/config/rest/downloads/{0}'.format(key_name)
key_obj = mgmt.tm.sys.file.ssl_keys.ssl_key.create_key(name=key_name,partition=partition, sourcePath=key_sourcepath)
key_obj.update()
cert_sourcepath = 'file:/var/config/rest/downloads/{0}'.format(certificate_name)
cert_obj = mgmt.tm.sys.file.ssl_certs.ssl_cert.create(name=certificate_name, partition=partition, sourcePath=cert_sourcepath)
cert_obj.update()
Text: '{"code":400,"message":"01070712:3: Certificate/Key has unknown format or security type (/Common/keynameAkash.key).","errorStack":[],"apiError":3}'
ref: https://f5-sdk.readthedocs.io/en/latest/userguide/transactions.html
ref: https://github.com/f5devcentral/lets-encrypt-python/blob/master/le_hook.py
No RepliesBe the first to reply
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects