You might not need the port on the URL. In my local example my URL is https://XYZ.lab.pega.com/prweb/api/v1. Does it work if you remove the port? What happens when you attempt to load that URL in a browser?
I have attached a rough draft of doc I am working on. The info below is mostly taken from the attached PDF.
First have you setup https on your Pega server? Is the Certificate used trusted? If you have done this properly you should be able to log into your pega application with https://<hostname>:8443/prweb. If you get a security warning from your browser then you have set up your server for https but are using an untrusted certificate. If this is personal edition and you just want to get up and running the easiest thing to do is disable the requirement to use https for the pega API, you can do this in the API Service Package record:
Open api Service Package
Records Explorer > Integration Resources > Service Packages
Open the API Service Package data rule from the list of rules (should be first one)
Uncheck Use TLS/SSL (REST only)
You can now change the URL in config file to the url below where hostname and port are the same you normally use to get to Pega.
Before doing the above change you can try the url below (be sure to set the ContextClass as noted in the URL. For instance my URL uses: ContextClass=TGB-Service-Work-PegaSample-ServiceRequest
You should be prompted for username and password, if you get a browser security warning your ssl cert is not trusted and it will not work. Log in with credentials from config and you should get back json with your relevant properties. If login is rejected then you need to add the PegaRULES:PegaAPI to the access group for that user.
https://<hostname>:8443/prweb/api/v1/data/D_pxRuleResolvedRelevantRecords?ContextClass=<<Full Class Name of Case>>&RecordType=Rule-Obj-Property
I forgot the name of the app has not changed yet. In the install folder for Studio which is one of these if you have installed Pega Robotics Studio (it will be a little different if you have installed the plug-in)
C:\Program Files\OpenSpan\OpenSpan Studio for Microsoft Visual Studio 2015
C:\Program Files (x86)\OpenSpan\OpenSpan Studio for Microsoft Visual Studio 2015
the Runtime will be found. It is called OpenSpan.Runtime.exe.