Aspera

 View Only
  • 1.  Configuring Password Prompt for Package Downloads using ascli

    Posted Thu December 14, 2023 11:23 AM

    My objective is to send a package using ascli. This is the complete command I am using;

    # ascli faspex5 packages send  @json:'{"title":"test title","recipients":[{"name":"receiver_email_account"}]}' test_file.bin --ts=@json:'{"content_protection":"encrypt", "content_protection_password":"t3st_d@c3m6er"}'


     Uploading the package poses no issues, but I want the recipient to decrypt the files when they initiate the download. When I send a package directly from the web browser, it prompts a pop-up window, but with this command, it encrypts the files without asking for a password when the recipients begin the download.

    How can I ensure that recipients are prompted to enter a password during the download process?



    ------------------------------
    Sean Kim
    ------------------------------


  • 2.  RE: Configuring Password Prompt for Package Downloads using ascli

    Posted Thu December 14, 2023 07:09 PM
    Edited by Laurent Martin Fri December 15, 2023 03:40 AM

    Hi,

    using ascli version 4.15.0 and Faspex 5.0.6.2, downloading a password-protected package will lead to failure:

    ascp: File decryption needs a passphrase in environment variable ASPERA_SCP_FILEPASS, exiting.

    The user can provide the passphrase similarly to sending:

    --ts=@json:'{"content_protection":"decrypt","content_protection_password":"t3st_d@c3m6er"}'

    Or one can trigger an interactive input with:

    --ts=@json:@extend:'{"content_protection":"decrypt","content_protection_password":"@secret:@"}'

    In next version, by default it will interactively ask the passphrase unless the use specifies not to do so (keep encrypted or give password)

    a beta can be found here: https://ibm.biz/aspera-cli-beta

    install with: gem install [gem filename here]

    Laurent



    ------------------------------
    Laurent Martin
    ------------------------------



  • 3.  RE: Configuring Password Prompt for Package Downloads using ascli

    Posted Tue December 19, 2023 07:01 PM

    Hello,

    thank you for your response and for providing me with the beta version.

    However, it still doesn't prompt for the passphrase that I configured with 'content_protection_password' when receivers initiate the download.

    Currently, they can download the encrypted version without entering a passphrase.

    I would like the receivers to download the content in a decrypted form after entering the passphrase.

    Is there a way to achieve this?



    ------------------------------
    Sean Kim
    ------------------------------



  • 4.  RE: Configuring Password Prompt for Package Downloads using ascli

    Posted Thu February 15, 2024 10:43 AM

    version 4.16.0. was released yesterday, that may address your question.



    ------------------------------
    Laurent Martin
    ------------------------------



  • 5.  RE: Configuring Password Prompt for Package Downloads using ascli

    Posted Mon March 18, 2024 07:32 AM

    I confirm that version 4.16.0 has the behaviour:

    If the package is password protected, the passphrase is asked interactively, unless this option is provided: --ts=@json:'{"content_protection":null}'



    ------------------------------
    Laurent Martin
    ------------------------------