No description
Find a file
2021-04-21 20:56:02 -03:00
.github Help to cs:fix when fail 2021-04-17 11:41:40 -03:00
.tx Fix transifex config 2021-03-20 09:49:58 -03:00
appinfo All configuration to route for signature validation, from php files to webpack for dev and prod 2021-04-21 20:56:02 -03:00
cfssl Rollback commit 2021-02-04 21:21:53 -03:00
docs Merge pull request #160 from LibreSign/update-documentation 2021-03-30 12:57:07 -03:00
dsv Rollback commit 2021-02-04 21:21:53 -03:00
img Move settings to specific menu 2021-04-08 23:11:14 -03:00
l10n [tx-robot] updated from transifex 2021-04-21 03:41:11 +00:00
lib All configuration to route for signature validation, from php files to webpack for dev and prod 2021-04-21 20:56:02 -03:00
src All configuration to route for signature validation, from php files to webpack for dev and prod 2021-04-21 20:56:02 -03:00
templates Merge remote-tracking branch 'origin/main' into feature-add-webhook 2021-02-08 17:40:12 -03:00
tests Fix get config 2021-04-21 02:44:51 -03:00
.eslintignore Remove signature path button 2021-02-02 11:30:14 -03:00
.eslintrc.js Rollback commit 2021-02-04 21:21:53 -03:00
.gitattributes Rollback commit 2021-02-04 21:21:53 -03:00
.gitignore Ignore phar files 2021-03-18 19:42:23 -03:00
.l10nignore Ignored folders by transifex 2021-03-18 19:42:34 -03:00
.npmignore Config to translate all text. 2021-02-08 18:04:51 -03:00
.php_cs.dist Rollback commit 2021-02-04 21:21:53 -03:00
.prettierrc All configuration to route for signature validation, from php files to webpack for dev and prod 2021-04-21 20:56:02 -03:00
babel.config.js Rollback commit 2021-02-04 21:21:53 -03:00
changelog-linker.php Hotfix 2021-03-03 14:52:26 -03:00
CHANGELOG.md Changelog 2021-04-12 15:34:50 -03:00
composer.json Remove simplify changelog 2021-04-18 16:21:44 -03:00
composer.lock Remove simplify changelog 2021-04-18 16:21:44 -03:00
cypress.json Configure Cypress for Integration Tests 2021-02-16 00:27:10 -03:00
jest.config.js Configured jest librarie for execute unit tests 2021-02-16 08:49:46 -03:00
LICENSE Rollback commit 2021-02-04 21:21:53 -03:00
Makefile Merge branch 'main' of github.com:LibreSign/libresign 2021-03-30 20:11:13 -03:00
package-lock.json npm audit fix 2021-03-07 23:22:47 -03:00
package.json Clean package.json 2021-03-08 00:27:46 -03:00
phpunit.xml Rollback commit 2021-02-04 21:21:53 -03:00
README.md Update README 2021-04-08 23:12:00 -03:00
stylelint.config.js Rollback commit 2021-02-04 21:21:53 -03:00
webpack.dev.js All configuration to route for signature validation, from php files to webpack for dev and prod 2021-04-21 20:56:02 -03:00
webpack.prod.js All configuration to route for signature validation, from php files to webpack for dev and prod 2021-04-21 20:56:02 -03:00

Test Status

LibreSign

Nextcloud app to sign PDF documents.

At the moment file signature requests must be requested via webhook. Read the documentation for more information.

Setup

Java and JSignPDF

Add the follow to Nextcloud PHP container Dockerfile

# Install Java and JsignPDF
RUN apt-get update # Only include this line if necessary
RUN mkdir -p /usr/share/man/man1
RUN apt-get install -y default-jre unzip
RUN curl -OL https://sourceforge.net/projects/jsignpdf/files/stable/JSignPdf%201.6.4/JSignPdf-1.6.4.zip \
    && unzip JSignPdf-1.6.4.zip -d /opt \
    && rm JSignPdf-1.6.4.zip

With CFSS server

Don't is necessary if you use a docker setup

Up a cfssl server using this code:

https://github.com/cloudflare/cfssl

The URL of server you will use in Admin settings

With docker-compose

  • Create a folder named cfssl in the same folder as your docker-compose.yml file. This folder will be used on one volume of the cfssl service.
  • put the file /cfssl/entrypoint.sh in cfssl folder
  • Add the volume ./cfssl:/cfssl in Nextcloud php service
  • Create a new server using the following code in your docker-compose.yml file:
  cfssl:
    image: cfssl/cfssl
    volumes:
      - ./cfssl:/cfssl
    working_dir: /cfssl
    entrypoint: /bin/bash
    command:
      - /cfssl/entrypoint.sh

Admin settings

Go to Settings > LibreSign and fill the necessary values for root certificate:

CN: CommonName
OU: OrganizationalUnit
O: Organization
C: CountryName
API: http://cfssl:8888/api/v1/cfssl/
Config path: /cfssl/

Go to Settings > Basic Settings and configure email settings. Is mandatory.

Integrations

  • GLPI: Plugin to sign GLPI tickets

Full documentation

here

Contributing

Feel free to submit Github Issues or pull requests.

The documentation website is build from the docs folder with vuepress.

To start front and backend development environment

make serve

To build documentation

make docs

To run PHPUnit

make test

Read more in composer.json scripts section