问题原文
原帖链接 · wrangler · CC BY-SA 4.0
SSL certificates by default have line breaks after 67 characters. I'm trying to create SSL certificate files using Chef. Essentially I want to create the entire certificate file from a string variable without any line breaks. I've tried this a few times to no avail (Apache complains about not being able to find certificate).
I don't see why line breaks in an SSL cert would be necessary. Any ideas if it's possible to have a cert without any line breaks in the file?
已采纳解答
原帖链接 · Shane Madden · CC BY-SA 3.0
No, the certificate won't be handled properly without the line breaks - software will fail to parse it.
If you're trying to pass it in a string, why not just include them in it? (\n)
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
