PGP/PEM Protocol Example
Client:
GET /docs/protected.html HTTP/1.0
Accept: text/plain
Accept: application/x-html
[other Accepts]
UserAgent: Mosaic/X 2.2
Server:
HTTP/1.0 401 Unauthorized
WWW-Authenticate: PGP entity="paranoid@danger.ncsa.uiuc.edu"
Server: NCSA/1.3
Client:
GET / HTTP/1.0
Authorization: PGP entity="acain@ncsa.uiuc.edu"
Content-type: application/x-www-pem-request
-----BEGIN PGP MESSAGE-----
Version: 2.6.2
[this is the real request, encrypted and signed]
hGwDl23+9JZcEX0BAv41s2ZP/3VcOdNj8oVKu2h3DP6C+TKdl4IIaQZIp6DBBPlc
mx5GS3ijHk3jP2NYlM1UydxUoShcIIsx1YGlltI/34l4t76oEkkajyvETCiTPYw7
NCdfSXh6P62j9iMKG56mAAAD9kQmeRP2zIhj+6Mm3h5bdSMllfwu8zrYjVocnK+t
jaFPZ6TuzyC2j6MFqfcO5M48ICdUw/KcOv63ffDC1bWYCyop3YeVAApqD/LekSLY
[etc]
-----END PGP MESSAGE-----
Server:
HTTP/1.0 200 OK
Content-type: application/x-www-pem-reply
-----BEGIN PGP MESSAGE-----
Version: 2.6.2
[this is the real reply, encrypted and signed]
JDqcVMsqo9RT3OGSa6pHDu3+dQm9HAgs56lf6CZqVK+g4PVlxIkA7WhErDJhtw+I
sRC/LPGLi/dF5L6YNg+00HHABgbiowra+OeHhsCRD6AgB2cYv3vg0Jz3uejUDUZo
FiG+va+AHqInZO5OvLHOxtIq5C7Hi2UZZpvITcVjfjb6YLRW+FGT6ekM5XHy3BAM
i95ZQPZsIHh1msScF9r1vIjpbLIIMoentld8eGBeKvRSVPpFHKuMZ6EyuDYgrXIy
[etc]
-----END PGP MESSAGE-----
taken from
PGP/PEM documentation by R. McCool