-
Notifications
You must be signed in to change notification settings - Fork 162
Transfer the SSL Regeneration Guide #218
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
Merged
Exairnous
merged 4 commits into
Hubs-Foundation:master
from
Exairnous:add-ssl-regen-guide
May 22, 2025
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
b06f74e
Transfer the SSL Regeneration Guide
Exairnous 1e19361
Remove accidentally added formatting that was meant for a future PR
Exairnous c575966
Add metadata description to Regenerating SSL Certificates
Exairnous 718fdcf
Update links to the SSL Regeneration Guide
Exairnous File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
--- | ||
id: regenerating-ssl-certificates | ||
title: Regenerating SSL Certificates | ||
description: Shows how to check a Hubs instance's SSL certificates and regenerate them when necessary. | ||
--- | ||
|
||
 | ||
|
||
The SSL certificates you generated in the Beginner's Guide will last you 90 days, but then you will need to regenerate them. Why do they expire every 90 days? We don’t know and we had to google that question. [Here’s the answer](https://letsencrypt.org/2015/11/09/why-90-days/): To limit damage from key compromise and to encourage all of us to implement automation. | ||
|
||
What does SSL stand for? Secure sockets layer. | ||
|
||
## How do I know how long my SSL certificates will last? | ||
|
||
You can check when your SSL certificates expire by going to your Hubs URL and viewing the certificate in your browser. | ||
|
||
### Firefox: | ||
|
||
Open your Hubs instance in your browser (this can be the home page, the admin panel, Spoke, a room, etc.), select the lock icon beside the URL bar, | ||
|
||
 | ||
|
||
select “Connection secure”, | ||
|
||
 | ||
|
||
|
||
select “More information”, | ||
|
||
 | ||
|
||
then select the Security tab in the window that pops up, and finally select the View Certificate button. | ||
|
||
 | ||
|
||
Look for the section with your domain. That will tell you when the certificate was issued and when it will expire. In this example, the SSL Certificate expires on January 21, 2025. | ||
|
||
 | ||
|
||
### Chrome: | ||
|
||
Open your Hubs instance in your browser (this can be the home page, the admin panel, Spoke, a room, etc.), then select the lock icon beside the URL bar, select "Connection is secure", and select "Certificate is valid". There should be a section in the dialog that pops up that will tell you when the certificate was issued and when it will expire. | ||
|
||
## How do I regenerate my certificates? | ||
|
||
You can regenerate your SSL certificates with the following steps. This is very similar to what you did in the Beginner’s Guide, Steps 13 and 15. | ||
|
||
1. Open VS Code. You will probably arrive in the HUBS-CLOUD-MASTER Folder, community-edition directory, hcce.yaml file. If you are not there, open it. | ||
 | ||
2. Select **hcce.yaml**. | ||
 | ||
3. Select **Control \+ F** on your keyboard and search for this text: **default-ssl-certificate** | ||
 | ||
4. Remove (delete) the # (number sign) from the beginning of the line to re-enable it. | ||
 | ||
5. Select **File, Save**. This will keep all of the changes you just made. | ||
 | ||
6. Make sure the terminal is in the community-edition directory. If not, **copy and paste** this into the terminal and **hit enter**: | ||
```shell | ||
cd community-edition | ||
``` | ||
 | ||
7. Apply the changes to Kubernetes on DO. **Copy and paste** the following text into the terminal and **hit enter on your keyboard**. | ||
```shell | ||
kubectl apply -f hcce.yaml | ||
``` | ||
Note: If you receive this error message: error: the path “hcce.yaml” does not exist means you are attempting a command from the wrong directory. | ||
 | ||
|
||
If running correctly, it will take a few seconds. Ongoing results look like this: | ||
 | ||
|
||
Final result looks like this: | ||
 | ||
|
||
8. **Copy and paste** the following text into the terminal and **hit enter on your keyboard** and wait for it to complete. | ||
```shell | ||
npm run gen-ssl | ||
``` | ||
Note: you will see in the output of the previous command that the AGE parameter doesn't reset. This is fine. | ||
 | ||
9. In VS Code, select **hcce.yaml.** | ||
 | ||
10. Select **Control \+ F** on your keyboard and search for this text: **default-ssl-certificate** | ||
 | ||
11. Insert a # (number sign) at the beginning of the line to disable it again. | ||
 | ||
12. Select **File, Save**. This will keep all of the changes you just made. | ||
 | ||
13. To apply the changes to Kubernetes on DO, **copy and paste** the following text into the terminal and **hit enter on your keyboard**. | ||
```shell | ||
kubectl apply -f hcce.yaml | ||
``` | ||
 | ||
You are done! If you’d like to check if the certificates are all renewed [follow these instructions again](#how-do-i-know-how-long-my-ssl-certificates-will-last). | ||
|
||
## Can I regenerate my certificates before they expire? | ||
|
||
Yes. If you are within 45 days of your certificates expiring you can regenerate them. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.