Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
settingsd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
settingsd
Commits
99560a1f
Commit
99560a1f
authored
Apr 08, 2019
by
Никита Ефремов
Committed by
Никита Ефремов
Apr 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated setup.py\ssl_fmod and config/ssl
parent
0d15185a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
ssl.conf
configs/settingsd/ssl.conf
+1
-1
fmod_ssl.py
plugins/functions/fmod_ssl.py
+6
-2
setup.py
setup.py
+4
-0
No files found.
configs/s
sl
/ssl.conf
→
configs/s
ettingsd
/ssl.conf
View file @
99560a1f
[
ssl
]
cert
ificate
_dir
= /
etc
/
opt
/
drweb
.
com
/
certs
cert_dir
= /
etc
/
opt
/
drweb
.
com
/
certs
plugins/functions/fmod_ssl.py
View file @
99560a1f
...
...
@@ -10,11 +10,14 @@ from settingsd import shared
from
settingsd
import
logger
from
settingsd.tools.process
import
execProcess
,
SubprocessFailure
from
os
import
path
from
configparser
import
ConfigParser
as
Cfp
##### Private constants #####
SERVICE_NAME
=
"ssl"
SSL_METHODS_NAMESPACE
=
"ssl"
CERTS_DIR
=
'/etc/opt/drweb.com/certs'
cfg_parser
=
Cfp
()
cfg_parser
.
read
(
const
.
CONFIGS_DIR
+
"/ssl"
+
const
.
CONFIG_FILE_POSTFIX
)
CERTS_DIR
=
cfg_parser
.
get
(
"ssl"
,
"sert_dir"
)
CERT_NAME
=
'serv'
PEMFILE
=
path
.
join
(
CERTS_DIR
,
CERT_NAME
+
'.pem'
)
KEYFILE
=
path
.
join
(
CERTS_DIR
,
CERT_NAME
+
'.key'
)
...
...
@@ -29,6 +32,7 @@ CERT_SUBJECT = '/C=RU/ST=1/L=1/O=1/OU=1/CN={}/emailAddress=1'
##### Private classes #####
class
Ssl
(
service
.
FunctionObject
)
:
### DBus methods ###
@service.functionMethod
(
SSL_METHODS_NAMESPACE
)
def
generateCertificate
(
self
):
...
...
setup.py
View file @
99560a1f
...
...
@@ -108,6 +108,10 @@ setup(
packages
=
packages_list
,
scripts
=
scripts_list
,
data_files
=
data_files_list
,
install_requires
=
[
"gudev"
,
"file_read_backwards"
]
cmdclass
=
{
"install"
:
SettingsdInstall
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment