Skip to content

Commit

Permalink
chore: make cert compatible with https
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Nov 2, 2024
1 parent 19de472 commit 9df10d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/auto-tls/src/auto-tls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class AutoTLS implements AutoTLSInterface {
const cert = new x509.X509Certificate(certString)

this.certificate = {
privateKey: certificatePrivateKey,
privateKey: certificatePrivateKey.toString('base64'),
certificate: certString,
commonName: domain,
expires: cert.notAfter
Expand Down
2 changes: 1 addition & 1 deletion packages/interface/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export interface TLSCertificate {
/**
* The private key that corresponds to the certificate
*/
privateKey: Uint8Array
privateKey: string

/**
* The common name the certificate is for
Expand Down

0 comments on commit 9df10d4

Please sign in to comment.