Jump to content
Sign in to follow this  
support

Changing the Passwordstate URL

Recommended Posts

To change to Passwordstate URL, there are a few things that are required to be completed:

 

1.       Make sure you have a functioning DNS entry for the new URL as per below screenshot:

 

2017-05-18_9-49-43.png

 

2.       On your Web server, modify the bindings in IIS like screenshot below Port 80 & 443 means you don't have to append the port number to the end of your URL.

 

clip_image001.png

 

 

3.       If you are still using the Self-Signed Certificate that Passwordstate installs, you will need to create a new one with Powershell, using the below instructions:

 

         1. On your web server, open Powershell ISE "As Administrator"

         2. Ensure Powershell is at least version 4.0.  Type $host into console and run the script to see what version you are running.  If you have to upgrade please use this link: https://www.microsoft.com/en-us/download/details.aspx?id=50395

         3. Copy the following code into your Powershell ISE console, and change the URL in the second line to be your new URL - run the script and it will create a new certificate for you.

 

# Begin script
$URL = "sandboxtest.halox.net"


$PowershellVersion = $host.version.Major
 
 # Create the SSL Certificate, using different commands depending on which version of Powershell is installed.  Preferably Powershell 5, as this allows us to set a longer expiry date on the certificate
    if ($PowershellVersion -eq '4')
    {
        $cert = New-SelfSignedCertificate -DnsName $URL -CertStoreLocation Cert:\LocalMachine\My    
    }
    if ($PowershellVersion -eq '5')
    {
        $StartDate = '01/01/' + (Get-Date).Year
        $EndDate = '01/01/' + (Get-Date).AddYears(5).Year
        $cert = New-SelfSignedCertificate -DnsName $URL -CertStoreLocation Cert:\LocalMachine\My -FriendlyName $URL -NotBefore $StartDate -NotAfter $EndDate
    }
        
    $rootStore = New-Object System.Security.Cryptography.X509Certificates.X509Store -ArgumentList Root, LocalMachine
    $rootStore.Open("MaxAllowed")
    $rootStore.Add($cert)
    $rootStore.Close()

 

 

4.      Now in IIS, go to the bindings for the site, double-click on the https binding, and select the new certificate you just created from the drop-down list

 

5.       Back in Passwordstate, go to the screen Administration -> System Settings -> Miscellaneous tab, and update the "Specify the Base URL used in any emails generated by Passwordstate" field you see here with the new URL – so all the links in the emails sent out are accurate

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×