We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ee071aa + e2fccbf commit 97c36d7Copy full SHA for 97c36d7
docs/certificat.md
@@ -0,0 +1,21 @@
1
+
2
3
+Generate a couple private and public key
4
5
+```bash
6
+openssl req -newkey rsa:2018 -nodes -keyout privkey.pem -x509 -days 365 -out public.pem
7
+```
8
9
+merge them into a p12 file :
10
11
12
13
+openssl pkcs12 -inkey privkey.pem -in public.pem -export -out server.p12
14
15
16
+Check your p12 file :
17
18
19
20
+openssl pkcs12 -in server.p12 -noout -info
21
examples/config.php
@@ -3,7 +3,7 @@
use AS2\PartnerInterface;
// load certificates
-openssl_pkcs12_read(file_get_contents(__DIR__.'/data/phpas2.12'), $certs, null);
+openssl_pkcs12_read(file_get_contents(__DIR__.'/data/phpas2.p12'), $certs, null);
return [
'storage_path' => __DIR__.'/tmp/storage',
0 commit comments