Skip to content

Commit 46f3524

Browse files
committed
Log ACME challenge for debugging
1 parent 6d37ef6 commit 46f3524

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/tls-certificates/acme.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,16 @@ export class AcmeCA {
5151
);
5252

5353
async getChallengeResponse(token: string) {
54-
return (await this.acmeClient).getChallengeKeyAuthorization({
54+
const challengeResponse = (await this.acmeClient).getChallengeKeyAuthorization({
5555
token,
5656
type: 'http-01',
5757
url: '',
5858
status: 'pending'
5959
});
60+
61+
console.log(`Challenge response for ${token} is ${challengeResponse}`);
62+
63+
return challengeResponse;
6064
}
6165

6266
tryGetCertificateSync(domain: string) {

0 commit comments

Comments
 (0)