You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Trusting the HTTPS development certificate was requested.A confirmation prompt will be displayed if the certificate was not previously trusted.Click yes on the prompt to trust the certificate.
130
-
//Successfully created and trusted a new HTTPS certificate.
//Run the command with both--check and --trust options to ensure that the certificate is not only valid but also trusted.
135
-
136
-
```
137
-
138
-
## Securing HTTPS certificate properties
139
-
140
-
Once the certificate is created, we will store its path and password as secrets in the PowerShell [SecretManagement and SecretStore](https://learn.microsoft.com/en-us/powershell/utility-modules/secretmanagement/how-to/using-secrets-in-automation?view=ps-modules) modules.
141
-
142
-
> More info available here : [Use the SecretStore in automation](https://learn.microsoft.com/en-us/powershell/utility-modules/secretmanagement/how-to/using-secrets-in-automation?view=ps-modules)
Next you must configure the SecretStore vault. The configuration sets user interaction to None, so that SecretStore never prompts the user. The configuration requires a password, and the password is passed in as a SecureString object. The -Confirm:false parameter is used so that PowerShell does not prompt for confirmation.
The script will try to unlock the specified vault with the provided password to get the HTTPS certificate path and password.
116
+
I recommend using [DockerMkcertForLocalSSL](https://github.com/PixsysBE/DockerMkcertForLocalSSL) to easily take care of local SSL certificates. Copy/Paste the required files into the .config folder and follow instructions from the installation section.
Copy file name to clipboardExpand all lines: src/DynamicDockerCompose/DynamicDockerCompose/.build/DynamicDockerCompose/dynamic-docker-compose.functions.ps1
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -155,8 +155,9 @@ Gets relative path from an absolute path
155
155
# }
156
156
functionGet-Relative-Path-From-Absolute-Path {
157
157
param (
158
-
[string]$fromPath,# Chemin absolu du dossier d'origine
0 commit comments