How to setup SSL Certificate for SSTP server

Post your questions about SoftEther VPN software here. Please answer questions if you can afford.
Post Reply
leelau
Posts: 3
Joined: Fri Sep 30, 2016 10:30 am

How to setup SSL Certificate for SSTP server

Post by leelau » Fri Sep 30, 2016 12:19 pm

Hi, I'm new to SoftEther, I set it up for SSTP server to connect my Android phone to home network.
I'm able to connect to SoftEther using an Android SSTP client. However, I got the following error message when I tried to connect to SoftEther using Windows native SSTP client :
A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider

I think this error is caused by I don't have a SSL certificate for SoftEther SSTP server, but I don't know how to setup one.

Can someone please help please.

Thanks
Lee

Nobody
Posts: 11
Joined: Mon Aug 08, 2016 7:13 am

Re: How to setup SSL Certificate for SSTP server

Post by Nobody » Sun Oct 09, 2016 6:17 pm

Maybe run this in vpncmd:
ServerCertRegenerate CN
ServerCertRegenerate <YOUR DOMAIN>

And maybe: have you installed the certificate in Windows?
Have a look here: https://technet.microsoft.com/en-gb/lib ... 41378.aspx
And here maybe: https://jlnostr.de/en/blog/raspberry-pi ... tallieren/
And here: https://www.softether.org/4-docs/1-manu ... entication

leelau
Posts: 3
Joined: Fri Sep 30, 2016 10:30 am

Re: How to setup SSL Certificate for SSTP server

Post by leelau » Mon Oct 10, 2016 4:03 am

Thanks for your post.

This is what I have accomplished so far. Configured softether server to use vpnazure, I can native windows sstp client and connect via vpnazure cloud. I can also connect using softether window's client, and connect with my android phone by using sstp vpn client by colucci-webit .

I'd really appreicate if you give me step by step procedures to setup both softether server and native windows sstp client so that they talk to each other ?

Thanks
Lee

Nobody
Posts: 11
Joined: Mon Aug 08, 2016 7:13 am

Re: How to setup SSL Certificate for SSTP server

Post by Nobody » Tue Oct 11, 2016 6:43 pm

Ok. What I think is, that Windows sees, that SoftEther has a self signed certificate. So Windows says: I don't trust you! I won't connect to you.
But I'll try to help you.
Ok. If you are on Linux run vpncmd.
Then connect to your vpnserver.
There run:
ServerCertGet ~/cert.cer
-> save server cert in ~/cert.cer
Next exit vpncmd with: exit
Next get into the root shell:
sudo -s
And change into the root home directory:
cd
Next change the rights:
chown <USERNAME>:<GROUPNAME> cert.cer
chmod 777 cert.cer
If your user is called max:
chown max:max cert.cer
chmod 777 cert.cer

And move it into your home directory:
mv cert.cer /home/<USERNAME>
Replace <USERNAME> with your Username.
Exemple max:
mv cert.cer /home/max
Next get the cert over FileZilla or an other way to your Windows PC.
And install it with the method described on the Microsoft page. I don't know if you use a Linux server. I do, so I think I can't help you with Windows...

leelau
Posts: 3
Joined: Fri Sep 30, 2016 10:30 am

Re: How to setup SSL Certificate for SSTP server

Post by leelau » Tue Oct 11, 2016 11:43 pm

Thanks for your instructions, but I'm running windows

Nobody
Posts: 11
Joined: Mon Aug 08, 2016 7:13 am

Re: How to setup SSL Certificate for SSTP server

Post by Nobody » Wed Oct 12, 2016 4:39 am

Ok. Maybe it's the same. Ok:
In vpncmd run the same commands but save the cert on your HDD:
ServerCertGet C:\Users\<USERNAME>\downloads
And navigate to this path. Now I would recommend to use your client to connect to your Windows server via Homenetwork and get the Certificate. Now install it from the Microsoft Tutorial.

Post Reply