I missed something, the postinst script need that to be readable by prosody:
chown prosody:prosody /etc/prosody/certs/localhost.key cheers, xakz -- Maxime Chatelle, human from earth, 010001111.cm94IGxvdmVyCg==.kpr <mchatelle ↯ linux-france ↯ org> <mmyc ↯ gmx ↯ com> 79E0 25F5 06C5 5C7F F57C BADD 13EE 911A 8A1A 9DE9
pgpswe31ddCk3.pgp
Description: PGP signature