hysteria icon indicating copy to clipboard operation
hysteria copied to clipboard

`failed to find any PEM data in certificate input` due to incorrect timing of keypairLoader.load()

Open enihcam opened this issue 3 years ago • 2 comments

May 10 12:52:45 localhost acme.sh[387]: [Tue May 10 12:52:45 PM CST 2022] Polling order status: https://acme.zerossl.com/v2/DV90/order/[MASKED]
May 10 12:52:49 localhost acme.sh[387]: [Tue May 10 12:52:49 PM CST 2022] Downloading cert.
May 10 12:52:49 localhost acme.sh[387]: [Tue May 10 12:52:49 PM CST 2022] Le_LinkCert='https://acme.zerossl.com/v2/DV90/cert/[MASKED]'
May 10 12:52:54 localhost hysteria[398]: 2022-05-10T12:52:54+08:00 [ERRO] [error:tls: failed to find any PEM data in certificate input] Failed to reload keypair
May 10 12:52:54 localhost acme.sh[2150]: Certificate:
May 10 12:52:54 localhost acme.sh[2150]:     Data:
May 10 12:52:54 localhost acme.sh[2150]:         Version: 3 (0x2)

The cert was eventually reloaded successfully, so the error can be totally avoid by right timing i assume?

enihcam avatar May 10 '22 05:05 enihcam

Is this caused by acme.sh "touching" the cert file but not writing the content immediately?

tobyxdd avatar May 10 '22 18:05 tobyxdd

i see. any option to disable the hot reload so i can manage this myself?

enihcam avatar May 11 '22 01:05 enihcam