Ну, просто передайте по каналу в содержании. например,
echo "message text"|mail -s "subject" someone@example.com
gd_bundle-g2-g1.crt
: Go Daddy Certificate Bundles - G2 With Cross to G1, includes Rootgdig2.crt
: Go Daddy Secure Server Certificate (Intermediate Certificate) - G22b9918dccf2f1d.crt
: Your certificateYou can use openssl
's x509
subcommand:
openssl x509 -subject -issuer -noout -in cert.pem
and check the output. Should be self explanatory.
An example:
$ openssl x509 -noout -issuer -subject -in gd-class2-root.crt
issuer= /C=US/O=The Go Daddy Group, Inc./OU=Go Daddy Class 2 Certification Authority
subject= /C=US/O=The Go Daddy Group, Inc./OU=Go Daddy Class 2 Certification Authority
$ openssl x509 -noout -issuer -subject -in gd_intermediate.crt
issuer= /C=US/O=The Go Daddy Group, Inc./OU=Go Daddy Class 2 Certification Authority
subject= /C=US/ST=Arizona/L=Scottsdale/O=GoDaddy.com, Inc./OU=http://certificates.godaddy.com/repository/CN=Go Daddy Secure Certification Authority/serialNumber=07969287
You can also verify the chain of trust:
$ openssl verify -CAfile gd-class2-root.crt gd_intermediate.crt
gd_intermediate.crt: OK