Help: Use stable 'if' namespace instead of experimental
[empathy-mirror.git] / tests / certificates / Makefile.am
blobc0d252a8809a548b0de223491f5d880edd40636e
1 EXTRA_DIST = \
2         certificate-authority.cer \
3         certificate-authority.pem \
4         server-cert.cer
6 # Not part of the build, but so we can easily repeat the process
7 # of generating the testing certificates
8 rebuild-certs:
9         openssl req -new -x509 -out certificate-authority.pem \
10                 -newkey rsa -keyout certificate-authority.key -nodes \
11                 -subj /CN=test-ca.empathy.gnome.org -days 2000 \
12                 -config cert-openssl.conf -set_serial 1 -extensions test_ca
13         openssl x509 -in certificate-authority.pem -outform DER \
14                 -out certificate-authority.cer
15         openssl req -new -outform PEM -out server-cert.req \
16                 -newkey rsa -keyout /dev/null -nodes \
17                 -subj /CN=test-server.empathy.gnome.org \
18                 -config cert-openssl.conf -extensions test_server
19         openssl x509 -req -in server-cert.req -days 2000 \
20                 -CA certificate-authority.pem -CAkey certificate-authority.key \
21                 -set_serial 888 -out server-cert.cer -outform DER
22         rm certificate-authority.key
23         rm server-cert.req