├── .editorconfig ├── .github ├── FUNDING.yml ├── stale.yml └── workflows │ └── ci.yml ├── .gitignore ├── .php-cs-fixer.php ├── CHANGELOG.md ├── README.md ├── composer.json ├── docs ├── certificate.md └── index.md ├── example ├── .gitignore ├── app │ ├── Commands │ │ └── SendCommand.php │ ├── Models │ │ ├── DataObject.php │ │ ├── Message.php │ │ └── Partner.php │ ├── Repositories │ │ ├── MessageRepository.php │ │ └── PartnerRepository.php │ ├── bootstrap.php │ ├── dependencies.php │ ├── helpers.php │ ├── middleware.php │ └── routes.php ├── bin │ └── console ├── composer.json ├── config │ ├── commands.php │ ├── partners.php │ └── settings.php ├── public │ ├── .htaccess │ └── index.php ├── resources │ ├── key3.pfx │ └── phpas2.p12 └── storage │ ├── .gitignore │ ├── logs │ └── .gitignore │ └── messages │ └── .gitignore ├── phpunit.xml ├── src ├── ASN1Helper.php ├── CryptoHelper.php ├── Management.php ├── MessageInterface.php ├── MessageRepositoryInterface.php ├── MimePart.php ├── PartnerInterface.php ├── PartnerRepositoryInterface.php ├── Server.php └── Utils.php └── tests ├── Mock ├── DataObject.php ├── Message.php ├── MessageRepository.php ├── Partner.php └── PartnerRepository.php ├── TestCase.php ├── Unit ├── Asn1HelperTest.php ├── CryptoHelperTest.php ├── ManagementTest.php ├── MimePartTest.php └── ServerTest.php ├── bootstrap.php └── fixtures ├── mic-calculation ├── phpas2.raw ├── phpas2_new.raw ├── pub.pem ├── s1.txt ├── s2.txt ├── server.crt ├── server.p7b ├── server.pem ├── server.pub ├── si_signed.mdn ├── si_signed_cmp.msg ├── signed-msg.txt ├── signed1.txt ├── signed2.txt ├── test.edi ├── test.mdn └── test.xml /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/.github/stale.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/.gitignore -------------------------------------------------------------------------------- /.php-cs-fixer.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/.php-cs-fixer.php -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/composer.json -------------------------------------------------------------------------------- /docs/certificate.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/docs/certificate.md -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/docs/index.md -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/example/.gitignore -------------------------------------------------------------------------------- /example/app/Commands/SendCommand.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/example/app/Commands/SendCommand.php -------------------------------------------------------------------------------- /example/app/Models/DataObject.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/example/app/Models/DataObject.php -------------------------------------------------------------------------------- /example/app/Models/Message.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/example/app/Models/Message.php -------------------------------------------------------------------------------- /example/app/Models/Partner.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/example/app/Models/Partner.php -------------------------------------------------------------------------------- /example/app/Repositories/MessageRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/example/app/Repositories/MessageRepository.php -------------------------------------------------------------------------------- /example/app/Repositories/PartnerRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/example/app/Repositories/PartnerRepository.php -------------------------------------------------------------------------------- /example/app/bootstrap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/example/app/bootstrap.php -------------------------------------------------------------------------------- /example/app/dependencies.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/example/app/dependencies.php -------------------------------------------------------------------------------- /example/app/helpers.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/example/app/helpers.php -------------------------------------------------------------------------------- /example/app/middleware.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/example/app/middleware.php -------------------------------------------------------------------------------- /example/app/routes.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/example/app/routes.php -------------------------------------------------------------------------------- /example/bin/console: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/example/bin/console -------------------------------------------------------------------------------- /example/composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/example/composer.json -------------------------------------------------------------------------------- /example/config/commands.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/example/config/commands.php -------------------------------------------------------------------------------- /example/config/partners.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/example/config/partners.php -------------------------------------------------------------------------------- /example/config/settings.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/example/config/settings.php -------------------------------------------------------------------------------- /example/public/.htaccess: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/example/public/.htaccess -------------------------------------------------------------------------------- /example/public/index.php: -------------------------------------------------------------------------------- 1 | run(); 6 | -------------------------------------------------------------------------------- /example/resources/key3.pfx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/example/resources/key3.pfx -------------------------------------------------------------------------------- /example/resources/phpas2.p12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/example/resources/phpas2.p12 -------------------------------------------------------------------------------- /example/storage/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/example/storage/.gitignore -------------------------------------------------------------------------------- /example/storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /example/storage/messages/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/ASN1Helper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/src/ASN1Helper.php -------------------------------------------------------------------------------- /src/CryptoHelper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/src/CryptoHelper.php -------------------------------------------------------------------------------- /src/Management.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/src/Management.php -------------------------------------------------------------------------------- /src/MessageInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/src/MessageInterface.php -------------------------------------------------------------------------------- /src/MessageRepositoryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/src/MessageRepositoryInterface.php -------------------------------------------------------------------------------- /src/MimePart.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/src/MimePart.php -------------------------------------------------------------------------------- /src/PartnerInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/src/PartnerInterface.php -------------------------------------------------------------------------------- /src/PartnerRepositoryInterface.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/src/PartnerRepositoryInterface.php -------------------------------------------------------------------------------- /src/Server.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/src/Server.php -------------------------------------------------------------------------------- /src/Utils.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/src/Utils.php -------------------------------------------------------------------------------- /tests/Mock/DataObject.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/tests/Mock/DataObject.php -------------------------------------------------------------------------------- /tests/Mock/Message.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/tests/Mock/Message.php -------------------------------------------------------------------------------- /tests/Mock/MessageRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/tests/Mock/MessageRepository.php -------------------------------------------------------------------------------- /tests/Mock/Partner.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/tests/Mock/Partner.php -------------------------------------------------------------------------------- /tests/Mock/PartnerRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/tests/Mock/PartnerRepository.php -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/tests/TestCase.php -------------------------------------------------------------------------------- /tests/Unit/Asn1HelperTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/tests/Unit/Asn1HelperTest.php -------------------------------------------------------------------------------- /tests/Unit/CryptoHelperTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/tests/Unit/CryptoHelperTest.php -------------------------------------------------------------------------------- /tests/Unit/ManagementTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/tests/Unit/ManagementTest.php -------------------------------------------------------------------------------- /tests/Unit/MimePartTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/tests/Unit/MimePartTest.php -------------------------------------------------------------------------------- /tests/Unit/ServerTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiamo/phpas2/HEAD/tests/Unit/ServerTest.php -------------------------------------------------------------------------------- /tests/bootstrap.php: -------------------------------------------------------------------------------- 1 |