installca.py


View documentation
'''
SMIT package implements a basic IoT platform.
Copyright 2016-2018 Distributed Systems Security, Data61, CSIRO
This file is part of SMIT package.
SMIT package is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
SMIT package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with SMIT package.  If not, see .
'''
import os
import sys
sys.path.insert(0, '../../')
sys.path.insert(0, '../')
import smit.utils
from security import certmngr


class AppCA(object):
    """Build applications for private CA which generate and distribute certificate for other devices.
    """

    def build(self):
        """Build an application: ca.
        """
        utl = smit.utils.Utils()
        utl.call("sudo apt-get -y install libssl-dev", shell=True)