I've followed the installation instructions but when I try to run mono Rainy.exe -c settings.conf it crashes after a call to makecert fails (see output below). The instructions seemed to say that generating a certificate oneself was optional, so I'm not sure why this would happen. If I can work around this problem by creating a certificate manually, that's good enough for me, but I have no experience with mono, and so have no idea what parameters to pass to makecert. Any advice would be welcome!
(The output follows:)
15/11/11_15:42:25.932 [DEBUG] Main->SetupLogging - logsystem initialized15/11/11_15:42:26.848 [DEBUG] Main->SetupLogging - Writing all log messages to file: debug.log15/11/11_15:42:26.988 [INFO ] Main->ConfigureSslCerts - No default SSL certificate found but SSL was enabled15/11/11_15:42:27.137 [INFO ] Main->ConfigureSslCerts - Creating a default self-signed certificate for domain localhost as ./data/ssl-cert.cerERROR: System.IndexOutOfRangeException: Array index is out of range.at Mono.Security.BitConverterLE.UIntFromBytes (System.Byte* dst, System.Byte[] src, Int32 startIndex) [0x00000] in <filename unknown>:0at Mono.Security.BitConverterLE.ToUInt32 (System.Byte[] value, Int32 startIndex) [0x00000] in <filename unknown>:0at Mono.Security.Authenticode.PrivateKey.Decode (System.Byte[] pvk, System.String password) [0x00000] in <filename unknown>:0at Mono.Security.Authenticode.PrivateKey..ctor (System.Byte[] data, System.String password) [0x00000] in <filename unknown>:0at Mono.Security.Authenticode.PrivateKey.CreateFromFile (System.String filename, System.String password) [0x00000] in <filename unknown>:0at Mono.Security.Authenticode.PrivateKey.CreateFromFile (System.String filename) [0x00000] in <filename unknown>:0at Mono.Tools.MakeCert.MakeCertMain (System.String[] args) [0x0091a] in /home/timo/Rainy/Rainy/makecert.cs:338Usage: makecert [options] certificate
-# numCertificate serial number-n dnSubject Distinguished Name-in dnIssuer Distinguished Name-rCreate a self-signed (root) certificate-sv pkvfilePrivate key file (.PVK) for the subject (created if missing)-iv pvkfilePrivate key file (.PVK) for the issuer-ic certfileExtract the issuer's name from the specified certificate-?help (display this help message)-!extended help (for advanced options)15/11/11_15:42:28.204 [FATAL] Main->ConfigureSslCerts - SSL cert generation failed
I've followed the installation instructions but when I try to run
mono Rainy.exe -c settings.conf
it crashes after a call to makecert fails (see output below). The instructions seemed to say that generating a certificate oneself was optional, so I'm not sure why this would happen. If I can work around this problem by creating a certificate manually, that's good enough for me, but I have no experience with mono, and so have no idea what parameters to pass tomakecert
. Any advice would be welcome!(The output follows:)
15/11/11_15:42:25.932 [DEBUG] Main->SetupLogging - logsystem initialized
15/11/11_15:42:26.848 [DEBUG] Main->SetupLogging - Writing all log messages to file: debug.log
15/11/11_15:42:26.988 [INFO ] Main->ConfigureSslCerts - No default SSL certificate found but SSL was enabled
15/11/11_15:42:27.137 [INFO ] Main->ConfigureSslCerts - Creating a default self-signed certificate for domain localhost as ./data/ssl-cert.cer
ERROR: System.IndexOutOfRangeException: Array index is out of range.
at Mono.Security.BitConverterLE.UIntFromBytes (System.Byte* dst, System.Byte[] src, Int32 startIndex) [0x00000] in <filename unknown>:0
at Mono.Security.BitConverterLE.ToUInt32 (System.Byte[] value, Int32 startIndex) [0x00000] in <filename unknown>:0
at Mono.Security.Authenticode.PrivateKey.Decode (System.Byte[] pvk, System.String password) [0x00000] in <filename unknown>:0
at Mono.Security.Authenticode.PrivateKey..ctor (System.Byte[] data, System.String password) [0x00000] in <filename unknown>:0
at Mono.Security.Authenticode.PrivateKey.CreateFromFile (System.String filename, System.String password) [0x00000] in <filename unknown>:0
at Mono.Security.Authenticode.PrivateKey.CreateFromFile (System.String filename) [0x00000] in <filename unknown>:0
at Mono.Tools.MakeCert.MakeCertMain (System.String[] args) [0x0091a] in /home/timo/Rainy/Rainy/makecert.cs:338
Usage: makecert [options] certificate
-# num
Certificate serial number
-n dn
Subject Distinguished Name
-in dn
Issuer Distinguished Name
-r
Create a self-signed (root) certificate
-sv pkvfile
Private key file (.PVK) for the subject (created if missing)
-iv pvkfile
Private key file (.PVK) for the issuer
-ic certfile
Extract the issuer's name from the specified certificate
-?
help (display this help message)
-!
extended help (for advanced options)
15/11/11_15:42:28.204 [FATAL] Main->ConfigureSslCerts - SSL cert generation failed