Skip to content

Commit 6db96df

Browse files
committed
(fix) Now Sets Service Certificate During Set-SSLSecurity
During wildcard installs, no certificate was being set for the service. This should fix that.
1 parent a6ffcf3 commit 6db96df

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Set-SslSecurity.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ process {
134134
# Build Credential Object, Connect to Nexus
135135
$securePw = (Get-Content 'C:\programdata\sonatype-work\nexus3\admin.password') | ConvertTo-SecureString -AsPlainText -Force
136136
$Credential = [System.Management.Automation.PSCredential]::new('admin', $securePw)
137-
137+
138138
# Connect to Nexus
139139
Connect-NexusServer -Hostname $SubjectWithoutCn -Credential $Credential -UseSSL
140140

@@ -234,6 +234,9 @@ process {
234234
}
235235

236236
<# CCM #>
237+
# Update the service certificate
238+
Set-CcmCertificate -CertificateThumbprint $Certificate.Thumbprint
239+
237240
# Remove old CCM web binding, and add new CCM web binding
238241
Stop-CcmService
239242
Remove-CcmBinding

0 commit comments

Comments
 (0)