With FusionAuth running on Windows, how should I format/escape the file path location of the fusionauth-app.https.certificate-file setting?
I know sometimes \ might need to be swapped to / but none of the settings below worked.
fusionauth-app.https.enabled=true
fusionauth-app.https-port=9013
fusionauth-app.https.port=9013
#fusionauth-app.https.certificate-file=%FUSIONAUTH_HOME%\config\host.test.example.com-chain.pem
#fusionauth-app.https.private-key-file=%FUSIONAUTH_HOME%\config\host.test.example.com-key.pem
fusionauth-app.https.certificate-#file=C:\ProgramData\FusionAuth\fusionauth\config\host.test.example.com-chain.pem
#fusionauth-app.https.private-key-file=C:\ProgramData\FusionAuth\fusionauth\config\host.test.example.com-key.pem
#fusionauth-app.https.certificate-file=c:\temp\host.test.example.com-chain.pem
#fusionauth-app.https.private-key-file=c:\temp\host.test.example.com-key.pem
#fusionauth-app.https.certificate-file=c:/temp/host.test.example.com-chain.pem
#fusionauth-app.https.private-key-file=c:/temp/host.test.example.com-key.pem
#fusionauth-app.https.certificate-file=c:\\temp\\host.test.example.com-chain.pem
#fusionauth-app.https.private-key-file=c:\\temp\\host.test.example.com-key.pem
#fusionauth-app.https.certificate-file=host.test.example.com-chain.pem
#fusionauth-app.https.private-key-file=host.test.example.com-key.pem
fusionauth-app.https.certificate=
fusionauth-app.https.private-key=
fusionauth-app.https.certificate=-----BEGIN CERTIFICATE-----\n\
MIIGDjCCBPagAwIBAgISAyxvjsihSN6W0rNUAY1fXcVGMA0GCSqGSIb3DQEBCwUA\n\
SDwmmTT0xfzFAQ41DxqWUgqB\n\
-----END CERTIFICATE-----\n\
-----BEGIN CERTIFICATE-----\n\
MIIFBjCCAu6gAwIBAgIRAIp9PhPWLzDvI4a9KQdrNPgwDQYJKoZIhvcNAQELBQAw\n\
uYkQ4omYCTX5ohy+knMjdOmdH9c7SpqEWBDC86fiNex+O0XOMEZSa8DA\n\
-----END CERTIFICATE-----\n
fusionauth-app.https.private-key=-----BEGIN RSA PRIVATE KEY-----\n\
MIIJJwIBAAKCAgEAhnEEn0OjBiXfQhfKTqWMRvrjUjidT/K6Av+/+B7DC62Yut+Q\n\
xsTJpAAfoblgR/f91kEHLs2kb9wZBqmscvIGxae6FP7B1mRZnTKZUglNHA==\n\
-----END RSA PRIVATE KEY-----\n
The : \ characters in c:\ in particular cause an illegal character error.
===================================================================================================
Unable to start the server. Here's why:
[java.nio.file.InvalidPathException: Illegal char <> at index 23: C:ProgramDataFusionAuthusionauthconfighost.test.example.com-chain.pem]
-> [class java.nio.file.InvalidPathException] Illegal char <> at index 23: C:ProgramDataFusionAuthusionauthconfighost.test.example.com-chain.pem
===================================================================================================
2025-01-07 02:00:29.596 PM ERROR org.primeframework.mvc.guice.GuiceBootstrap - Unable to start the server. Exception:
com.google.inject.CreationException: Unable to create injector, see the following errors:
1) [Guice/ErrorInjectingConstructor]: InvalidPathException: Illegal char <> at index 23: C:ProgramDataFusionAuthusionauthconfighost.test.example.com-chain.pem
at DefaultFusionAuthConfiguration.<init>(DefaultFusionAuthConfiguration.java:89)
at DefaultFusionAuthConfiguration.class(DefaultFusionAuthConfiguration.java:26)
while locating DefaultFusionAuthConfiguration
at FusionAuthInitialMaintenanceModeModule.configure(FusionAuthInitialMaintenanceModeModule.java:24)
while locating InversoftConfiguration
Learn more:
https://github.com/google/guice/wiki/ERROR_INJECTING_CONSTRUCTOR
2) [Guice/ErrorInjectingConstructor]: InvalidPathException: Illegal char <> at index 23: C:ProgramDataFusionAuthusionauthconfighost.test.example.com-chain.pem
at DefaultFusionAuthConfiguration.<init>(DefaultFusionAuthConfiguration.java:89)
at DefaultFusionAuthConfiguration.class(DefaultFusionAuthConfiguration.java:26)
while locating DefaultFusionAuthConfiguration
at FusionAuthInitialMaintenanceModeModule.configure(FusionAuthInitialMaintenanceModeModule.java:25)
while locating FusionAuthConfiguration
Learn more:
https://github.com/google/guice/wiki/ERROR_INJECTING_CONSTRUCTOR
2 errors