For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Akash9920's avatar
Akash9920
Icon for Nimbostratus rankNimbostratus
Jul 27, 2020

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