Revert to self-signed certificate

NethServer Version: 6.8 Final
Module: pki

Just attempted to add my purchased SSL certificate and now I can’t access the server on port 980.

Did these to f*** it up:

db configuration setprop pki CrtFile /etc/pki/tls/certs/my-domain.crt
db configuration setprop pki KeyFile /etc/pki/tls/private/my-domain.key
db configuration setprop pki ChainFile /etc/pki/tls/certs/intermediate.cer

signal-event certificate-update

I need to revert back to the self signed certificate still on the server - but don’t know which files I should apply to correct this.

Any clues, thanks!

I think this should do it:

db configuration delprop pki CrtFile
db configuration delprop pki KeyFile
db configuration delprop pki ChainFile
signal-event certificate-update
6 Likes

Great!!! I’m back in business. It worked.

A great thanks for this - @dnutan

You’re welcome. :wink:

Hi dnutan,
Thanks for the support.
Worked for me like a charm.

1 Like