https://github.com/interactivetraining/acme-client
:closed_lock_with_key: Simple scalable automatic solution for obtaining SSL certificates
https://github.com/interactivetraining/acme-client
acme cloudflare google-cloud-storage letsencrypt scalable ssl typescript
Last synced: 9 months ago
JSON representation
:closed_lock_with_key: Simple scalable automatic solution for obtaining SSL certificates
- Host: GitHub
- URL: https://github.com/interactivetraining/acme-client
- Owner: InteractiveTraining
- License: mit
- Created: 2019-04-17T21:41:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-17T06:58:01.000Z (over 5 years ago)
- Last Synced: 2025-05-07T15:51:56.719Z (9 months ago)
- Topics: acme, cloudflare, google-cloud-storage, letsencrypt, scalable, ssl, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@interactivetraining/acme-client
- Size: 17.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# acme-client
Simple scalable automatic solution for obtaining SSL certificates.
## Example
```typescript
import * as https from 'https';
import {AcmeClient} from '@interactivetraining/acme-client';
new AcmeClient({
domain: 'my-domain.com',
email: 'support@my-domain.com',
googleCloud: {
projectId: process.env.GOOGLE_CLOUD_PROJECT_ID,
bucketName: process.env.GOOGLE_CLOUD_SSL_BUCKET_NAME,
credentials: {
email: process.env.GOOGLE_CLOUD_CLIENT_EMAIL,
privateKey: process.env.GOOGLE_CLOUD_CLIENT_PRIVATE_KEY
}
},
cloudflare: {
email: process.env.CLOUDFLARE_EMAIL,
apiKey: process.env.CLOUDFLARE_API_KEY
},
fileNames: {
cert: 'my-domain-prod-cert.pem',
caCert: 'my-domain-prod-caCert.pem',
privateKey: 'my-domain-prod-private-key.pem',
accountKey: 'my-domain-prod-account-key.pem'
},
acmeServer: 'prod',
agreeTerms: true
}).getCert().then((res) => {
https.createServer({
cert: res.cert,
key: res.key
}, () => {
});
});
```