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

Doc: Custom Certificates #7

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ These settings can be set in the docker command line with the --env parameter, o
| SMTPPORT | The TCP port for the RELAYHOST | 25 |
| AUTO_SYNC | Synchronize definitions automatically on start up | true |
| HTTPS | Use HTTPS for the web interface. Use HTTP if false | true |
| CERTIFICATE | Use the Path to your SSL-Certificate | none |
| CERTIFICATE_KEY | Use the Path to your SSL-Certificate Private Key | none |
| OPT_PDF | Install deps for PDF Reports (texlive) on firststart | 0 |
20 changes: 20 additions & 0 deletions openvas-greenbone-deployment-full-guide/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,27 @@ gvmd –-delete-user=MyUser2 --inheritor=MyUser
Ensuring you take note of the password for the 2nd create user


### Question 8 - How can I use my own SSL Certificate?

#### Solution 1

You can build your own image:
```
FROM securecompliance/gvm:latest
ENV HTTPS=true \
CERTIFICATE=/etc/ssl/cert/MY_SSL_CERT.pem \
CERTIFICATE_KEY=/etc/ssl/private/MY_SSL_CERT.key
COPY ./ssl/MY_SSL_CERT.pem /etc/ssl/cert/MY_SSL_CERT.pem
COPY ./ssl/MY_SSL_CERT.key /etc/ssl/private/MY_SSL_CERT.key
RUN chmod 0644 /etc/ssl/cert/MY_SSL_CERT.pem ; chmod 0600 /etc/ssl/private/MY_SSL_CERT.key
```


#### Solution 2

You can use Volumes:

`-v ./ssl/:/secrets/ssl/ -e HTTPS=true -e CERTIFICATE=/secrets/ssl/MY_SSL_CERT.pem -e CERTIFICATE=/secrets/ssl/MY_SSL_CERT.key`



Expand Down