File tree Expand file tree Collapse file tree 3 files changed +64
-6
lines changed Expand file tree Collapse file tree 3 files changed +64
-6
lines changed Original file line number Diff line number Diff line change 1
- # it-acme-client
1
+ # acme-client
2
+ Simple scalable automatic solution for obtaining SSL certificates.
3
+
4
+ ## Example
5
+ ``` typescript
6
+ import * as https from ' https' ;
7
+ import {AcmeClient } from ' @interactivetraining/acme-client' ;
8
+
9
+ new AcmeClient ({
10
+ domain: ' my-domain.com' ,
11
+
12
+ googleCloud: {
13
+ projectId: process .env .GOOGLE_CLOUD_PROJECT_ID ,
14
+ bucketName: process .env .GOOGLE_CLOUD_SSL_BUCKET_NAME ,
15
+ credentials: {
16
+ email: process .env .GOOGLE_CLOUD_CLIENT_EMAIL ,
17
+ privateKey: process .env .GOOGLE_CLOUD_CLIENT_PRIVATE_KEY
18
+ }
19
+ },
20
+ cloudflare: {
21
+ email: process .env .CLOUDFLARE_EMAIL ,
22
+ apiKey: process .env .CLOUDFLARE_API_KEY
23
+ },
24
+ fileNames: {
25
+ cert: ' my-domain-prod-cert.pem' ,
26
+ caCert: ' my-domain-prod-caCert.pem' ,
27
+ privateKey: ' my-domain-prod-private-key.pem' ,
28
+ accountKey: ' my-domain-prod-account-key.pem'
29
+ },
30
+ acmeServer: ' prod' ,
31
+ agreeTerms: true
32
+ }).getCert ().then ((res ) => {
33
+ https .createServer ({
34
+ cert: res .cert ,
35
+ key: res .key
36
+ }, () => {
37
+
38
+ });
39
+ });
40
+ ```
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " it- acme-client" ,
2
+ "name" : " @interactivetraining/ acme-client" ,
3
3
"version" : " 0.0.1" ,
4
- "description" : " " ,
4
+ "description" : " Simple scalable automatic solution for obtaining SSL certificates." ,
5
+ "keywords" : [
6
+ " acme client" ,
7
+ " lets encrypt" ,
8
+ " ssl" ,
9
+ " cloud" ,
10
+ " typescript"
11
+ ],
5
12
"main" : " dist/index.js" ,
13
+ "types" : " dist/index.d.ts" ,
6
14
"scripts" : {
7
15
"build" : " tsc"
8
16
},
9
- "author" : " Interactive Training" ,
17
+ "author" : " Interactive Training (http://interactive.training) " ,
10
18
"license" : " MIT" ,
11
19
"devDependencies" : {
20
+ "@types/node" : " ^11.13.5" ,
12
21
"typescript" : " ^3.4.3"
13
22
},
14
23
"dependencies" : {
15
24
"@google-cloud/storage" : " ^2.5.0" ,
16
- "@types/node" : " ^11.13.4" ,
17
25
"cloudflare" : " ^2.4.1" ,
18
26
"letiny" : " ^0.2.1-1" ,
19
27
"reflect-metadata" : " ^0.1.13" ,
20
28
"typedi" : " ^0.8.0"
29
+ },
30
+ "homepage" : " https://github.com/InteractiveTraining/acme-client#acme-client" ,
31
+ "maintainers" : [
32
+ " Adam LaCombe (https://github.com/adamlacombe)"
33
+ ],
34
+ "bugs" : {
35
+ "url" : " https://github.com/InteractiveTraining/acme-client/issues"
36
+ },
37
+ "repository" : {
38
+ "type" : " git" ,
39
+ "url" : " git+https://github.com/InteractiveTraining/acme-client.git"
21
40
}
22
41
}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import {GCloudStorageService} from './services/gCloudStorageService';
6
6
import { ConfigService } from './services/configService' ;
7
7
import { CloudflareService } from './services/cloudflareService' ;
8
8
9
- export class itAcmeClient {
9
+ export class AcmeClient {
10
10
config : ConfigService ;
11
11
gCloudStorage : GCloudStorageService ;
12
12
cloudflareService : CloudflareService ;
You can’t perform that action at this time.
0 commit comments