Forum Discussion
TMSH::Install Command missing???
I'm moving ahead with starting to write my own iApp to deploy our hosted applications...
However I've hit a stumbling block... I want the set-up wizard to create the certificate's for the VIPs as part of the wizard using some text boxes on screen which I'll paste the existing server keys into...
I've found the following command within the tmsh reference guide:
(tmos.sys.crypto.cert) install cert test from-editor
However I'm struggling to find a way of doing this using an iApp...
Any ideas?
Cheers
Gavin
- Brent_Blood_768Historic F5 Account
Hi Gavin,
Yeah, it looks like the "install" part of tmsh isn't plumbed through to the scripting API. That's an oversight and I believe a bug exists for it. However, it might actually be by design since I think you can do what you want to do using "tmsh::create / sys file ssl-cert" and "tmsh::create / sys file ssl-key". I just generated an SSL cert key pair using openssl and successfully imported it using the scripting API.
Here's a code snippet to show what I did:
tmsh::create sys file ssl-cert blah source-path FILE:/var/tmp/blah.crt
tmsh::create sys file ssl-key blah source-path FILE:/var/tmp/blah.key
tmsh::create ltm profile client-ssl blah key blah cert blah
If you needed to generate the key/cert from a tmsh script/iApp, you could do that by using "exec" to invoke openssl - or you can do it off-box and pull the crt/key in using a remote URL in the "file" command. To see help on the file command within tmsh, type "help sys file ssl-cert" or "help sys file ssl-key".
Cheers,
-Brent
- GavinW_29074NimbostratusBrent
- Mitra_Kelly_625Historic F5 AccountThe TCL file commands are all available from the Implementation section. Here is a link to documentation on them: http://wiki.tcl.tk/367.
- Brent_Blood_768Historic F5 AccountHi Gavin,
- GavinW_29074NimbostratusBrent,
- GavinW_29074NimbostratusAs a quick update, i've tried reformatting the pem file so that it is all on one line, and then running the create... However it fails with 'unable to validate certificate, invalid x509 file'.
- GavinW_29074NimbostratusOk, an update on this then..
- Brent_Blood_768Historic F5 AccountSorry I dropped off this for a while...
Recent Discussions
Related Content
* 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