more structure

This commit is contained in:
Philipp Kunz 2016-06-18 15:59:03 +02:00
parent 04be5f88eb
commit bbee7923e4
5 changed files with 39 additions and 3 deletions

View File

@ -9,8 +9,11 @@ import {Cert} from "cert";
let myCert = new Cert({
cfEmail = "some@cloudflare.email",
cfKey = "someCloudflareApiKey",
outputPath = "someOutputPath" // NOTE: if you already have certificates, make sure you put them in here, so cert only requires the missing ones
sslDir = "someOutputPath" // NOTE: if you already have certificates, make sure you put them in here, so cert only requires the missing ones
});
myCert.getDomainCert("example.com");
```
```
### sslDir
to use the certificates it is important to understand what the structure of the ssl directory looks like.

View File

@ -27,7 +27,9 @@
"cflare": "0.0.2",
"letsencrypt": "^1.4.4",
"smartcli": "^1.0.2",
"smartfile": "^3.0.10"
"smartfile": "^3.0.10",
"smartgit": "0.0.10",
"typings-global": "^1.0.3"
},
"devDependencies": {
"npmts-g": "^5.2.6"

View File

@ -0,0 +1,3 @@
import "typings-global";
export import path = require("path");

0
ts/cert.plugins.ts Normal file
View File

View File

@ -0,0 +1,28 @@
import * as paths from "./cert.paths";
export class Cert {
cfEmail:string;
cfKey:string;
sslDir:string;
certificatesPresent;
certificatesValid;
gitOriginRepo;
constructor(optionsArg:{
cfEmail:string,
cfKey:string,
sslDir:string,
gitOriginRepo:string
}){
this.cfEmail = optionsArg.cfEmail;
this.cfKey = optionsArg.cfKey;
this.sslDir = optionsArg.sslDir;
this.gitOriginRepo = optionsArg.gitOriginRepo;
};
getDomainCert(){};
}
export class Certificate {
constructor(){
};
}