#About
This is a server providing app download and installation,supporting Android and iOS.A solution for app ota
Https is required,so make sure that having genreated crts.
Thanks for HockeyKit,There are a lot of content to learn from it
#Requirements
Python 2.7+
Tornado Module
#Usage
1.set config in config dir,set your ip
2.generate crt files
2.1.生成自己的密钥对:openssl genrsa -out ca.key 1024
2.2.生成证书请求文件,并使刚刚的key来加密CA根证书:openssl req -new -x509 -days 365 -key ca.key -out ca.crt
2.3.生成服务器使用的证书,并用自己的根证书签名:openssl genrsa -out server.key 1024
2.4.生成证书请求文件:openssl req -new -key server.key -out server.csr
2.5.接下来我们需要使用根证书对这个证书进行签名,但是在签名之前,需要做一些准备工作, 我们需要构建这样一个目录结构,在当前目录新建文件夹demoCA,
进入demoCA,在demoCA下创建两个文件index.txt和serial ,以及文件夹newcerts,其中index.txt的内容为空,serial的内容为01。
完成之后
2.6.开始签名:openssl ca -in server.csr -out server.crt -cert ca.crt -keyfile ca.key
3.set crts path in main.py
4.copy ca.crt to static dir
5.run the server: python main.py
6.visit https://127.0.0.1/distribution over browser
#Todo
1.add upload api
2.add upload web