cancel
Showing results for 
Search instead for 
Did you mean: 

error creating client SSL key and certificate [error: (01070712)unknown format or security type ]

Akash9920
Nimbostratus
Nimbostratus

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

 

0 REPLIES 0