DataPower

 View Only
  • 1.  Save file at 'cert' directory

    Posted Sun September 18, 2022 07:22 AM
    Dears,
    I am just wondering if I can create/overwrite 'cert' file and save it at 'cert' directory using XSLT or JavaScript?
     
    However, my case is I got new key every day and this key is used to encrypt a message.
    Therefore, to use it we need to create shared crypto key which doesn't have the ability to view any directory except the 'cert', 'shared cert' and 'local'. 
     
    Thanks a lot for your help
    Riham Lamei


    ------------------------------
    Riham Lamei
    ------------------------------


  • 2.  RE: Save file at 'cert' directory

    Posted Sun September 18, 2022 10:21 PM
    See answer to other post. Same answer.

    ------------------------------
    Charlie Sumner
    ------------------------------



  • 3.  RE: Save file at 'cert' directory

    Posted Mon September 19, 2022 01:09 PM
    Dear Riham,

    The fs() methods provide access to the file system.
    You can read files from the local:, store:, and temporary: directories. You can write files in the temporary: directory.
    All the fs() methods are asynchronous, except for the fs.temporary() method. If two transactions are writing into the same file, the contents of the file are what the last transaction wrote.
    To access the functions in the fs() module, use the require('fs') statement.


    You can only write file function on temporary directory.

    Regards,
    Jay Y


    ------------------------------
    Jayprakash Yadav
    ------------------------------