PEM_read_bio_X509 - Installing Cert

I am running into a strange problem.

If I cat domain.crt >> bundle.crt

ssl_certificate bundle.crt;
ssl_certificate_key domain.key;

and I try to start nginx I get the following error message.

nginx: [emerg] PEM_read_bio_X509(“bundle.crt”) failed (SSL:)

If I dont use the bundle I just use the domain.crt with adding it to the
bundle

ssl_certificate domain.crt;
ssl_certificate_key domain.key;

nginx starts without trouble.

Curious what I am doing wrong.

Thanks.

I forgot to mention that when I try to access the site via a browser if
I just to the domain.crt then it pops up a dialog because its just an
unsigned cert.

Thanks in advance for any pointers.

Fixed it. Whitespace - Arrgh. Thanks sorry for the noise.