Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Documenso
  3. Create New CERT

Create New CERT

Scheduled Pinned Locked Moved Solved Documenso
7 Posts 3 Posters 880 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • CptPlasticC Offline
    CptPlasticC Offline
    CptPlastic
    wrote on last edited by
    #1

    Im not sure what im doing wrong here. I created a new signing cert as per the updated instructions I created one with a password and one without thinking it was not getting the password from someplace. I dont see any cert configuration in the .env file so im not sure that its even needed. Here is the error I get now.

    Error: Failed to get private key bags
    Aug 12 10:21:16 at I (/run/documenso/apps/web/.next/server/chunks/8946.js:1:1144118)
    Aug 12 10:21:16 at async I (/run/documenso/apps/web/.next/server/chunks/8946.js:1:1142215)
    Aug 12 10:21:16 at async k (/run/documenso/apps/web/.next/server/chunks/8946.js:1:6584)
    Aug 12 10:21:16 at async h (/run/documenso/apps/web/.next/server/pages/api/trpc/[trpc].js:1:44521)
    Aug 12 10:21:16 at async /run/documenso/apps/web/.next/server/pages/api/trpc/[trpc].js:1:142833
    Aug 12 10:21:16 at async resolveMiddleware (file:///run/documenso/node_modules/@trpc/server/dist/index.mjs:420:30)
    Aug 12 10:21:16 at async callRecursive (file:///run/documenso/node_modules/@trpc/server/dist/index.mjs:456:32)
    Aug 12 10:21:16 at async callRecursive (file:///run/documenso/node_modules/@trpc/server/dist/index.mjs:456:32)
    Aug 12 10:21:16 at async resolve (file:///run/documenso/node_modules/@trpc/server/dist/index.mjs:486:24)
    Aug 12 10:21:16 at async inputToProcedureCall (file:///run/documenso/node_modules/@trpc/server/dist/resolveHTTPResponse-cd1a9112.mjs:46:22) {
    Aug 12 10:21:16 code: 'GenericFailure'
    Aug 12 10:21:16 }

    1 Reply Last reply
    1
    • nebulonN nebulon marked this topic as a question on
    • CptPlasticC Offline
      CptPlasticC Offline
      CptPlastic
      wrote on last edited by CptPlastic
      #5

      Here is a solution to fix this. Its a workaround till documentoso gets this fixed.
      https://github.com/documenso/documenso/issues/1171

      Use the -legacy flag

      Same steps as before.

      1. openssl genrsa -out private.key 2048
      2. openssl req -new -x509 -key private.key -out certificate.crt -days 365
        a. Fill out all the details.
      3. openssl pkcs12 -export -out cert.p12 -inkey private.key -in certificate.crt -legacy
        a. If you set a password you have to add this line to your .env file.
        NEXT_PRIVATE_SIGNING_PASSPHRASE={YourStrongPassHere}
      4. Restart your app.
      1 Reply Last reply
      1
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #2

        I can reproduce this, also the docs need fixing to set the correct file ownership to the cloudron user.

        The current flow is mostly copied from https://github.com/documenso/documenso/blob/v0.9/README.md#creating-your-own-signing-certificate which apparently is not fully correct then.

        Not yet sure what the error really means, but to use the app for filling out forms and signing documents, this is not required and only optional.

        CptPlasticC 1 Reply Last reply
        0
        • nebulonN nebulon

          I can reproduce this, also the docs need fixing to set the correct file ownership to the cloudron user.

          The current flow is mostly copied from https://github.com/documenso/documenso/blob/v0.9/README.md#creating-your-own-signing-certificate which apparently is not fully correct then.

          Not yet sure what the error really means, but to use the app for filling out forms and signing documents, this is not required and only optional.

          CptPlasticC Offline
          CptPlasticC Offline
          CptPlastic
          wrote on last edited by
          #3

          @nebulon This is true, however if you have a signing inspector this will not pass as the signing cert is not related to the origin of the document. That is what lead me down this path to try and get the new cert to work. Also the one that comes with it will expire.

          I did try to set the owner to cloudron. I may try again to see if I can get it to work.

          1 Reply Last reply
          0
          • CptPlasticC Offline
            CptPlasticC Offline
            CptPlastic
            wrote on last edited by
            #4

            I think I found a solution. I'm testing it now.

            1 Reply Last reply
            0
            • CptPlasticC Offline
              CptPlasticC Offline
              CptPlastic
              wrote on last edited by CptPlastic
              #5

              Here is a solution to fix this. Its a workaround till documentoso gets this fixed.
              https://github.com/documenso/documenso/issues/1171

              Use the -legacy flag

              Same steps as before.

              1. openssl genrsa -out private.key 2048
              2. openssl req -new -x509 -key private.key -out certificate.crt -days 365
                a. Fill out all the details.
              3. openssl pkcs12 -export -out cert.p12 -inkey private.key -in certificate.crt -legacy
                a. If you set a password you have to add this line to your .env file.
                NEXT_PRIVATE_SIGNING_PASSPHRASE={YourStrongPassHere}
              4. Restart your app.
              1 Reply Last reply
              1
              • CptPlasticC CptPlastic has marked this topic as solved on
              • nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #6

                Thanks for that info! I have put those changes into the docs at https://docs.cloudron.io/apps/documenso/ now

                1 Reply Last reply
                0
                • nebulonN nebulon referenced this topic on
                • J Offline
                  J Offline
                  jonajinga
                  wrote on last edited by
                  #7

                  Thanks @CptPlastic & @nebulon for working through this. I've got mine up and running now.

                  Best,

                  Jon

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Bookmarks
                  • Search