forked from talkkonnect/talkkonnect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgencert.sh
executable file
·32 lines (28 loc) · 1.16 KB
/
gencert.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
## talkkonnect headless mumble client/gateway with lcd screen and channel control
## Copyright (C) 2018-2019, Suvir Kumar <[email protected]>
##
## This Source Code Form is subject to the terms of the Mozilla Public
## License, v. 2.0. If a copy of the MPL was not distributed with this
## file, You can obtain one at http://mozilla.org/MPL/2.0/.
##
## Software distributed under the License is distributed on an "AS IS" basis,
## WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
## for the specific language governing rights and limitations under the
## License.
##
## The Initial Developer of the Original Code is
## Suvir Kumar <[email protected]>
## Portions created by the Initial Developer are Copyright (C) Suvir Kumar. All Rights Reserved.
##
## Contributor(s):
##
## Suvir Kumar <[email protected]>
##
## My Blog is at www.talkkonnect.com
## The source code is hosted at github.com/talkkonnect
## Generate cert and put in talkkonnect folder
openssl genrsa -aes256 -out key.pem
openssl req -new -x509 -key key.pem -out cert.pem -days 1095
openssl rsa -in key.pem -out nopasskey.pem
cat nopasskey.pem cert.pem > ../mumble.pem