Skip to content
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

How to update SSL certs #327

Open
dustinbird opened this issue Jan 29, 2025 · 10 comments
Open

How to update SSL certs #327

dustinbird opened this issue Jan 29, 2025 · 10 comments

Comments

@dustinbird
Copy link

I have been requested to update the SSL certificates on my 3 servers running the docker containers for OpenVas. I was advised that the certificates are stored in the container. How do I locate these and replace them?

@immauss
Copy link
Owner

immauss commented Jan 29, 2025

well ... that depends.

How did you setup the SSL certs initially? Are they the self signed certs generated by the container ?

-Scott

@dustinbird
Copy link
Author

That is a good question. I will check with Gareth in my IT team as he said he sent a document to you about this and that I should be able to find it here somewhere but I am unable at present.

@immauss
Copy link
Owner

immauss commented Jan 29, 2025

You can alwasy set the location via GSA_ARGS.

-e GSA_ARGS="--ssl-private-key=<file location> --ssl-certificate=<file location> "

Also documented here:
GSA_ARGS

@dustinbird
Copy link
Author

is there a way to see the location of the current ones?

@immauss
Copy link
Owner

immauss commented Jan 30, 2025

If you are using something other than the self signed, it should show in how you are starting the container. Either through a volume or bind mappping or a docker cp ?
But they should be in ...

/data/var-lib/gvm/private/CA

I've always used:
https://github.com/immauss/rev-prox

-Scott

@immauss
Copy link
Owner

immauss commented Feb 9, 2025

@dustinbird
Any luck?

@dustinbird
Copy link
Author

dustinbird commented Feb 17, 2025 via email

@immauss
Copy link
Owner

immauss commented Feb 21, 2025

Answers to those questions all depend on how it is setup now. :(
Sorry ...

@gareth-johnstone
Copy link
Contributor

@dustinbird Looking back at my previous open issue regarding this matter #28 (comment)

It appears the locations we use are

/data/var-lib/gvm/private/CA - Private key Location
/data/var-lib/gvm/CA - Certificate Location

However, I think the approach of using the GSA_ARGS would be much preferred

@dustinbird
Copy link
Author

Thanks @gareth-johnstone if this is the best option for us I will go with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants