aboutsummaryrefslogblamecommitdiff
path: root/app/email/config/postfix/certs.gen
blob: f25439b3897ef1ad8e755eec11ce5145a1d1fab7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                       
#!/bin/bash

TLSINFO="/C=FR/ST=Bretagne/L=Rennes/O=Deuxfleurs/CN=smtp.deuxfleurs.fr"
openssl req \
  -new \
  -newkey rsa:4096 \
  -days 3650 \
  -nodes \
  -x509 \
  -subj ${TLSINFO} \
  -keyout postfix.key \
  -out postfix.crt