$ echo 'dns_name = other.gnutls.org' >> server.tmpl
$ certtool --generate-certificate …
+You can verify a certificate if you can supply the whole certificate
+chain.
+
+ $ certtool --verify-chain --infile x509-server.pem --infile x509-ca.pem
+
+With versions of GnuTLS since 2.99.0 (released 2011-04-09), you can
+verify against the global list of trusted CAs.
+
+ $ certtool --verify --load-ca-certificate /etc/ssl/certs/ca-certificates.crt --infile x509-server.pem
+
OpenSSL
=======
$ openssl x509 -in cert.pem -noout -text
+You can verify a certificate if you can supply the whole certificate
+chain with [verify][].
+
+ $ openssl verify cert.pem
+
PEM
===
[req]: http://www.openssl.org/docs/apps/req.html
[x509v3_config]: http://www.openssl.org/docs/apps/x509v3_config.html#Subject_Alternative_Name_
[x509]: http://www.openssl.org/docs/apps/x509.html
+[verify]: http://www.openssl.org/docs/apps/verify.html
[Debian]: http://debian.org/
[ca-certificates]: http://packages.debian.org/sid/ca-certificates
[.pem]: http://en.wikipedia.org/wiki/X.509#Certificate_filename_extensions