Stop asking for the host name in --makepem

Come on, it's a self-signed certificate, how much value does it have anyway?
Also, it gets rid of a question during --makeconf which confuses some people.

This should now use $HOSTNAME and fall back to "host.unknown" if that isn't set.

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter
2011-08-03 22:05:21 +02:00
parent 90f741d2ca
commit dcf357b1f6
2 changed files with 2 additions and 15 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ void CUtils::GenerateCert(FILE *pOut, const CString& sHost) {
}
if (!pHostName) {
pHostName = "unknown.com";
pHostName = "host.unknown";
}
CString sEmailAddr = pLogName;