NavidShokoufeh / sstp_flutter

BSD 3-Clause "New" or "Revised" License
7 stars 6 forks source link

i nedd to add my own cert from internal assets files #2

Closed it-ahmednour closed 8 months ago

it-ahmednour commented 8 months ago

hello sir thanks for this package how i can add my own certificate from internal assets Is it possible to connect without a certificate?

NavidShokoufeh commented 8 months ago

Hi, checkout the new version (1.0.7) first of all define these properties (useTrustedCert: true, sslVersion: SSLVersions.DEFAULT,) in SSTPServer, and then select the folder which involves your certificate using cert_dir = await sstpFlutterPlugin.addCertificate(); NOTE: you have to change SSLVersions from default to any supported version.

let me know if your problem persists.

it-ahmednour commented 8 months ago

I have already tried the connection through version 1.0.6 By using a ssl certificate, I manually specify its folder I am asking about the possibility of integrating my ssl certificate into my application or connecting without need a ssl certificate

On Sun, 7 Jan 2024 at 22:31, Navid Shokoufeh @.***> wrote:

Hi, checkout the new version (1.0.7) first of all define these properties (useTrustedCert: true, sslVersion: SSLVersions.DEFAULT,) in SSTPServer, and then select the folder which involves your certificate using cert_dir = await sstpFlutterPlugin.addCertificate(); NOTE: you have to change SSLVersions from default to any supported version.

let me know if your problem persists.

— Reply to this email directly, view it on GitHub https://github.com/NavidShokoufeh/sstp_flutter/issues/2#issuecomment-1880163290, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLZUBQYOQXKJQTHBM7FDXLYNMAZPAVCNFSM6AAAAABBQIKNXCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBQGE3DGMRZGA . You are receiving this because you authored the thread.Message ID: @.***>

it-ahmednour commented 8 months ago

I have some problems after upgrade version to 1.0.7 [image: image.png]

On Mon, 8 Jan 2024 at 00:10, Ahmed Nour @.***> wrote:

I have already tried the connection through version 1.0.6 By using a ssl certificate, I manually specify its folder I am asking about the possibility of integrating my ssl certificate into my application or connecting without need a ssl certificate

On Sun, 7 Jan 2024 at 22:31, Navid Shokoufeh @.***> wrote:

Hi, checkout the new version (1.0.7) first of all define these properties (useTrustedCert: true, sslVersion: SSLVersions.DEFAULT,) in SSTPServer, and then select the folder which involves your certificate using cert_dir = await sstpFlutterPlugin.addCertificate(); NOTE: you have to change SSLVersions from default to any supported version.

let me know if your problem persists.

— Reply to this email directly, view it on GitHub https://github.com/NavidShokoufeh/sstp_flutter/issues/2#issuecomment-1880163290, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLZUBQYOQXKJQTHBM7FDXLYNMAZPAVCNFSM6AAAAABBQIKNXCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBQGE3DGMRZGA . You are receiving this because you authored the thread.Message ID: @.***>

NavidShokoufeh commented 8 months ago

I am asking about the possibility of integrating my ssl certificate into my application or connecting without need a ssl certificate.

I'm working on that , i will add it if be possible.

NavidShokoufeh commented 8 months ago

I have some problems after upgrade version to 1.0.7 [image: image.png]

Please provide some information about you problem. snippet code , error or anything else that you think i can help you with.

it-ahmednour commented 8 months ago

This would be great Thank you very much I wish you success always If you need a STP account to try out, this is a special account for you server => win.mega-tik.com port => 443 user => navidshokoufeh pass => navidshokoufeh ssl_cert => attached My greetings to you

On Mon, 8 Jan 2024 at 11:09, Navid Shokoufeh @.***> wrote:

I am asking about the possibility of integrating my ssl certificate into my application or connecting without need a ssl certificate.

I'm working on that , i will add it if be possible.

— Reply to this email directly, view it on GitHub https://github.com/NavidShokoufeh/sstp_flutter/issues/2#issuecomment-1880615292, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLZUBUUDAK5ZIGYYEWL35TYNOZUHAVCNFSM6AAAAABBQIKNXCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBQGYYTKMRZGI . You are receiving this because you authored the thread.Message ID: @.***>

it-ahmednour commented 8 months ago

i just use you example main.dart without any changes

[image: image.png]

On Mon, 8 Jan 2024 at 11:10, Navid Shokoufeh @.***> wrote:

I have some problems after upgrade version to 1.0.7 [image: image.png]

Please provide some information about you problem. snippet code , error or anything else that you think i can help you with.

— Reply to this email directly, view it on GitHub https://github.com/NavidShokoufeh/sstp_flutter/issues/2#issuecomment-1880617503, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGLZUBQZ6BXDARNTLOXRHYTYNOZZVAVCNFSM6AAAAABBQIKNXCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBQGYYTONJQGM . You are receiving this because you authored the thread.Message ID: @.***>

NavidShokoufeh commented 8 months ago

i just use you example main.dart without any changes [image: image.png]

The account you provided with certificate you sent me works correctly by the example of package, and i can't figure out your problem because your image is not attached.

it-ahmednour commented 8 months ago

![Uploading Screenshot 2024-01-08 113413.png…]()

NavidShokoufeh commented 8 months ago

https://gist.github.com/vinkla/dca76249ba6b73c5dd66a4e986df4c8d#file-cdn-md

it-ahmednour commented 8 months ago

i fix my errors by delete old package version folder from windows app_data cache directory thanks my bro

it-ahmednour commented 8 months ago

look here => https://chat.openai.com/share/09cadb9f-216b-4a4e-877e-611661044b14 you can edit SSLTerminal.kt to add your own certificate from internal raw folder

NavidShokoufeh commented 8 months ago

look here => https://chat.openai.com/share/09cadb9f-216b-4a4e-877e-611661044b14 you can edit SSLTerminal.kt to add your own certificate from internal raw folder

thanks , i will consider it.