Daniel Super Contributor.
Super Contributor.
323 views

Upload a file through OO

I have develop a flow that installs a certificate on an F5.
The problem is that I need to upload the certificate to the F5 from my local computer.

Is there any option that allows you to browse you local computer and upload the file?

Thanks

Tags (2)
0 Likes
3 Replies
Outstanding Contributor.. csaunderson Outstanding Contributor..
Outstanding Contributor..

Re: Upload a file through OO

Is the certificate in PEM?

Would it be an option, for example, to have the flow prompt for a cut and paste of the certificate and the filename to which it should be output, and then combine those in the flow to give the object that then gets put onto the F5?

--Chris

0 Likes
Daniel Super Contributor.
Super Contributor.

Re: Upload a file through OO

Sorry for the delay.
This is how I'm actually doing it now:

1- Request the certificate by prompt
2- OO saves the certificate on a variable
3- The certificate is written on the F5 using a bash command

 echo '${F5_certFile}' > /config/ssl/ssl.crt/${F5_certName}_${currentDate}

4- The certificate gets installed on the F5.

The problem is that saving the certificate on a variable mess with the break lines and I have to replace the \n with another line break delimiter.
That works many times, but not 100%. That is reason I'm looking for a different way to move the certificate.

This is an example of a certificate:

-----BEGIN CERTIFICATE-----
MIIC+TCCAeGgAwIBAgIJAI3KeSDZ9SugMA0GCSqGSIb3DQEBBQUAMBMxETAPBgNV
BAMMCHRlc3QuY29tMB4XDTE4MTEwNTEzNDM1MFoXDTI4MTEwMjEzNDM1MFowEzER
MA8GA1UEAwwIdGVzdC5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
AQDBShzHaTFnb/CM6T5G42olKR8VPTr0OQv2NY4f3yFKXlk9m7WAg80p0hpjqisb
kZclL9fXvHxD9tCcL/lmzEPRg+eNzNpxZB6TJ0CnpP+APqyTJC/rN8tfE7Jzo5Zl
zoPj7YlHcrOM81Hm0GQt7yfpZClO/cUi1P4Uxn9As+n5Ni51m5mJNxDn8ymQ5A+U
E9G3I6lsdeXs2ufcSh96/4VG4elk2P+iOGd/m50VD2TpTdMxCAFsE/WqCOfJt6fd
rYYB3SXKs629mEjOK63HZIrkq0UsrxMcGR2Lra2pCrEogXx1Ac7fGfl3wSynARlP
liv/535iUlIX8VXubF9xjE/JAgMBAAGjUDBOMB0GA1UdDgQWBBTzsbhK4wcKnqKs
KANLdRse1s2Y7jAfBgNVHSMEGDAWgBTzsbhK4wcKnqKsKANLdRse1s2Y7jAMBgNV
HRMEBTADAQH/MA0GCSqGSIb3DQEBBQUAA4IBAQBI2kfM0FTas1M6K4TuqcSZDMNF
M1seYLCfhT63ZpNdC8T+dncmzy+BAr2IKoqrHUYs4cRlmjX/ONbqbiERT2z5fsQS
zITVYqUaDn0x4/N02YPMQ2CaavCtQajIl4KUtFPxzmrkOx0fyoAZ3fjdsj9NlUSH
8XZcfyUpvSxm8/WCBYLVi03VVi6IrpLApEvvBMahBfi1jnvCFKST5yf4b7rMO4MB
sRuNV0BtZzRnplNpxBRxSg7LlpQTgVK3NIMOm1NDxzIP77+/7pi1jqQZv9CWqMci
TrpAeD3vZ/Q73w7OdsPXcmjSyI1qTQjlHsaIU/St7ZoH+NueI9IhZ3EjHacm
-----END CERTIFICATE-----
0 Likes
Outstanding Contributor.. JarodMB Outstanding Contributor..
Outstanding Contributor..

Re: Upload a file through OO

OO doesn't provide a file upload function within flow execution - you can, however, put in links to a shared folder that someone could place the file and then iterate over that share directory to create a selection list for the user to select the file to process. 

There may be an existing item in the "Idea Exchange" as this file upload behavior has been requested regularly for the past several years. 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.