Skip to content

Commit 97c36d7

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents ee071aa + e2fccbf commit 97c36d7

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

docs/certificat.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
```bash
13+
openssl pkcs12 -inkey privkey.pem -in public.pem -export -out server.p12
14+
```
15+
16+
Check your p12 file :
17+
18+
19+
```bash
20+
openssl pkcs12 -in server.p12 -noout -info
21+
```

examples/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use AS2\PartnerInterface;
44

55
// load certificates
6-
openssl_pkcs12_read(file_get_contents(__DIR__.'/data/phpas2.12'), $certs, null);
6+
openssl_pkcs12_read(file_get_contents(__DIR__.'/data/phpas2.p12'), $certs, null);
77

88
return [
99
'storage_path' => __DIR__.'/tmp/storage',

0 commit comments

Comments
 (0)