2 | | |
3 | | |
4 | | == Creating Certificate == |
5 | | |
6 | | 1. Create CACert.account |
7 | | 2. Create certificate creation request: |
8 | | {{{ |
9 | | $ cat <<< EOF > user.conf |
10 | | # |
11 | | # LocalServer.conf |
12 | | # |
13 | | |
14 | | [ req ] |
15 | | prompt = no |
16 | | distinguished_name = your_distinguished_name |
17 | | |
18 | | [ your_distinguished_name ] |
19 | | commonName = sip.pjsip.org |
20 | | subjectAltName = sip.pjsip.org |
21 | | stateOrProvinceName = London |
22 | | countryName = GB |
23 | | emailAddress = bennylp@pjsip.org |
24 | | organizationName = PJSIP.ORG |
25 | | organizationalUnitName = Top secret research department |
26 | | EOF |
27 | | |
28 | | $ openssl req -config user.conf -out user-cert_req.pem -keyout user-privkey.pem -new -nodes |
29 | | }}} |
30 | | 1. Copy the content of {{{user-cert_req.pem}}} to clipboard |
31 | | 1. Go to your browser again, login to your CACert.org account |
32 | | 1. Select from the right menu: '''Server Certificates''' --> '''New''' |
33 | | 1. Paste the request to the text box, and click '''Submit''' button. |
34 | | 1. Confirm the creation |
35 | | 1. Your server certificate will be created. |
36 | | 1. Save the server certificate to a file, say, {{{server-cert.pem}}}. |
37 | | |