File: README.txt

package info (click to toggle)
qpid-proton 0.14.0-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 9,632 kB
  • ctags: 20,083
  • sloc: java: 39,624; ansic: 29,389; python: 16,581; cpp: 11,250; ruby: 6,618; perl: 2,641; php: 1,033; xml: 957; sh: 230; pascal: 52; makefile: 32
file content (24 lines) | stat: -rw-r--r-- 936 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
This directory contains basic self signed test certificates for use by
proton examples.

The ".pem" files are in the format expected by proton implementations
using OpenSSL.  The ".p12" file are for Windows implementations using
SChannel.

The commands used to generate the certificates follow.


make_pn_cert()
{
  name=$1
  subject=$2
  passwd=$3
  # create the pem files
  openssl req -newkey rsa:2048 -keyout $name-private-key.pem -out $name-certificate.pem -subj $subject -passout pass:$passwd -x509 -days 3650
  # create the p12 files
  openssl pkcs12 -export -out $name-full.p12 -passin pass:$passwd -passout pass:$passwd -inkey $name-private-key.pem -in $name-certificate.pem -name $name
  openssl pkcs12 -export -out $name-certificate.p12 -in $name-certificate.pem -name $name -nokeys -passout pass:
}

make_pn_cert tserver /CN=test_server/OU=proton_test tserverpw
make_pn_cert tclient /CN=test_client/OU=proton_test tclientpw