gpg clear signed message on website

gnupg at lists.grepular.com gnupg at lists.grepular.com
Mon Sep 3 16:24:47 CEST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 03/09/12 13:07, anotst01 at fastmail.fm wrote:

> The goal is to sign a message on a webserver.
> 
> I clear signed a plain text file and double checked I can still
> verify it. The resulting clear signed text has been put into a new
> file surrounded by
> 
> <pre> -----BEGIN PGP SIGNED MESSAGE----- ....... -----END PGP
> SIGNATURE----- </pre>
> 
> and saved as file.html. When I open file.html with a browser, copy
> the text into a text file and store it, I get a bad signature.
> 
> What is the correct syntax for a website source to show a gpg
> signed message?

Just a thought. If you're not doing anything overly complicated with
the message, you could serve it as text/plain instead of text/html,
and then embed it inside your HTML using an iframe.

- -- 
Mike Cardwell  https://grepular.com/     http://cardwellit.com/
OpenPGP Key    35BC AF1D 3AA2 1F84 3DC3  B0CF 70A5 F512 0018 461F
XMPP OTR Key   8924 B06A 7917 AAF3 DBB1  BF1B 295C 3C78 3EF1 46B4
-----BEGIN PGP SIGNATURE-----

iQGGBAEBCgBwBQJQRL2vMBSAAAAAACAAB3ByZWZlcnJlZC1lbWFpbC1lbmNvZGlu
Z0BwZ3AuY29tcGdwbWltZTgUgAAAAAAVABpwa2EtYWRkcmVzc0BnbnVwZy5vcmdt
aWtlLmNhcmR3ZWxsQGdyZXB1bGFyLmNvbQAKCRCdJiMBwdHnBGlbCACai99Aurju
fXsG3ywNMGdS0jtQju2zrIICBJCqkMFE6+qRMxyXRfqzGGlLanao5su/KXk+jk7k
a9mH50vYVuQb83aQAKlx2yrIVyIqhTLpU11GyNxpl3YRZvf2pBFZYedA0fce4uoj
98RVyofvjL1miAe+RPJck8jX62H8zDHHKyF2Mh1a1aIRGo5sb2QxwcTaAYW/HOQZ
lxosTzV8H1hLCsMTvihRYtXk3kYHZRzbdmS/T9Au04m88lvJwn4Z5znqmQR0Rakr
DW56W1h1QGuEwfzg/8kNQEg73sFVTZoLngw+vdnJfGFqUWRyJ3sqLM6/cFDvsLdV
tXTXl4ZT3M+c
=k6/t
-----END PGP SIGNATURE-----



More information about the Gnupg-users mailing list