Forum Discussion
Ben_Skolmoski_1
Nimbostratus
Sep 14, 2006Unable to import SSL Key using "key_import_from_pem"
I am trying to import a key using key_import_from_pem(...);
and keep getting the following error:
System.Web.Services.Protocols.SoapHeaderException: Exception caught in Management::KeyCerti...
Ben_Skolmoski_1
Nimbostratus
Sep 15, 2006using export_to_archive_stream & import_from_archive_stream came back with the same results (Exception caught in Management::KeyCertificate::import_from_archive_stream()
Exception: Common::OperationFailed
primary_error_code : -7 (0xFFFFFFF9)
secondary_error_code : 0
error_string : error:0906D06C:PEM routines:PEM_read_bio:no start line).
I also did some further testing and generated a key using openssl if I encrypt the key using a password I get the following error;
Management::KeyCertificate::key_import_from_pem()
Exception: Common::OperationFailed
primary_error_code : -7 (0xFFFFFFF9)
secondary_error_code : 0
error_string : error:04065072:rsa
routines:RSA_EAY_PRIVATE_DECRYPT:padding check failed.
I am guessing this is because it does not have the correct password,
unfortunately I have not found a way to pass a password in for the key.
If I do not encrypt the key the key imports but then shows the size as 0
bits, and thus cannot use the key.
Let me know if you have any other ideas or if you have even been able to duplicate what i am trying to do.
Thanks,
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
