-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error Code 542 #1
Comments
Having the cert active should not cause problems -- while developing the script I created the certificate and certificate authority manually first, then started playing with the script. Is it possible your result is something else? "542" is not listed in the API docs as a possible result. In the docs for Sophos Firewall OS 17.5 (the version I'm running) - Possible results listed for 'create certificate authority'
Possible results for 'create or update certificate'
Suggestion:
|
I'm going to close this since I haven't heard back from you. |
Hello! I still get this error, i setup my sophos new. |
I've reopened the issue. It appears that if there are WAF rules that use the certificate you want to update the Sophos returns the undocumented error code 542. (I didn't create any waf rules until after I thought I had the update procedure worked out, so I was not seeing this error). |
I'm not sure how useful it is to update the certificates automatically if we still need to login to the web console to edit the WAF entries in the firewall. |
I've just implemented the script and seen the same results. I'm wondering whether we can modify the script here to:
I believe this is possible but I'll look into it. If I have any luck I'll send a pull req. |
I looked into this and added code to include the date in the certificate name. So - we can create a new cert and upload it to the XG. However, I could not find any API call that would let me change the certificate for a WAF entry - so you would still need to login to the XG and manually change the certificate that gets used by each WAF entry. Or, referencing your list:
|
re: 3. I asked on sophos community as I was unable to make any changes to WAF rules via the API. It appears this is a known bug, to be fixed in 18.0 MR4 so I'll have another look then. Though it looks like if you're stuck on 17.5, you might be out of luck. |
I have updated le2xg.sh to:
This still leaves you needing to use the XG web interface to change the certificate for your WAF rules in the firewall settings. |
Hello,
first, thanks for this great script!
I get the error code 542 - I think it means that the certificate is already in use... is there anyway to upload it, if it's active in a firewall rule?
Br
sh4d0w4k6
The text was updated successfully, but these errors were encountered: