Arc 4.2.0 enable SSL, custom certificate

,

Hi,

I am trying to enable the SSL for Arc 4.2.0 with a custom certificate I received as pfx.

Using OpenSLL I executed the following commands

openssl pkcs12 -in cert.pfx -nocerts -out key.pem
openssl pkcs12 -in cert.pfx -clcerts -out cert.pem

In both cases I entered the password I received together with the certificate

Enter Import Password:
Enter PEM pass phrase:
Verifying - Enter PEM pass phrase:

I copied the files in the ssl folder of Arc (and enabled in configuration).
When starting the arc service, I’m getting the following in the log.

2024-03-19 14:16:36.760	run	INFO	Arc version is: 4.2.0
2024-03-19 14:16:36.760	run	INFO	Working directory is: D:\TM1 Install software\ARC
2024-03-19 14:16:36.760	run	INFO	Data directory is: D:\TM1 Install software\ARC
2024-03-19 14:16:36.765	run	INFO	Server running on port: 7070
2024-03-19 14:16:36.767	run	INFO	Local URL:
https://localhost:7070
2024-03-19 14:16:36.769	run	CRITICAL	tls: failed to parse private key

Any idea of what might be wrong?

I think you need to add -nodes
openssl pkcs12 -in cert.pfx -nocerts -nodes -out key.pem

Because otherwise the private key is encrypted and arc can’t read it

1 Like

That did the trick. Thank you @pgrochola