How about reading PEM encoded certificates and keys from STDIN?