Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fortify local client isn't detected in first running #258

Open
rossinicolas opened this issue Sep 13, 2021 · 12 comments
Open

Fortify local client isn't detected in first running #258

rossinicolas opened this issue Sep 13, 2021 · 12 comments
Assignees
Labels

Comments

@rossinicolas
Copy link

Dears, i have an issue in my app the first time that the PeculiarFortifyCertificates web compontent is rendering because the component not detect the client locally installed. If i put the url https://127.0.0.1:31337/.well-known/webcrypto-socket in the browser, the second time that the component is render everything it's ok.
TIA.

@rmhrisk
Copy link
Contributor

rmhrisk commented Sep 13, 2021

We will needs Fortify logs, the logs from the JavaScript console and what browser you are expecting this with.

@rossinicolas
Copy link
Author

Hi @rmhrisk ,
The Fortify Log is empty, i'm using both Chrome and Firefox.

I have a github repo if would you like try.

@microshine
Copy link
Contributor

@rossinicolas Do you have any Security warnings on the first starting?
After putting еру link to the local service do you accept SSL certificate in it?

Looks like the problem is with the trusted certificate registration

@rossinicolas
Copy link
Author

it's like a browser could't connect to localhost.
Using the web component i don't have any security warning and if i use the url https://tools.fortifyapp.com i saw that logs in the browser console
imagen

the only way that i found to use the component in the clients is running the url https://127.0.0.1:31337/.well-known/webcrypto-socket the first time, but isn't a solution because will be have again the issue if the user cleanup the browser history or cookies.

@microshine
Copy link
Contributor

@rossinicolas Could you try to remove ~/.fortify folder and restart Fortify. It must generate the new SSL certificate and mark it like a trusted certificate.

On SSL generation you'll see the waning dialog
image

@rossinicolas
Copy link
Author

I removed the fortify folder and after restart the local client i saw the Security warning that you show me, but i still showing the message "Fortify Client Not Detected"
The repo that i'm using to testing sign with Fortify Client is https://github.com/rossinicolas/fortify-test.git

@microshine
Copy link
Contributor

It's strange. I can't reproduce that issue. Fortify reinstalls SSL certificate and the browser trusts to it

image

@rossinicolas
Copy link
Author

i made the same testing that you in Windows and everything it's ok. My issue is in Linux system because i'm using Linux Mint as OS.

@microshine
Copy link
Contributor

I've got the same problem on MacOS for Firefox browser. Looks like Fortify can't register SSL certificate.

working on it

@rossinicolas Thank you for the help

@microshine microshine self-assigned this Sep 13, 2021
@microshine microshine added the bug label Sep 13, 2021
@microshine
Copy link
Contributor

@rossinicolas Could you check out your Mozilla Profiles folder?

The current version of Fortify looks for profiles with default name in:

  • Windows: ~/AppData/Roaming/Mozilla/Firefox/Profiles
  • Linux: ~/.mozilla/firefox
  • MacOS: /Library/Application Support/Firefox/Profiles

I found that my computer has got 2 default profiles - <id>.default and <id>.default-release. And looks like Firefox uses default but on SSL certificate adding it throws exception about bad database.

I removed all my profiles and restarted Firefox. Now it uses default-release and Fortify adds SSL certificate correctly.

image

There is one more way to add the trusted certificate. Import it to firefox Authorities manually. PEM CA certificate is ~/.fortify/ca.pem

@rossinicolas
Copy link
Author

Good Morning @microshine , fist of all thanks for your time to resolve my issue. The first solution that you told me yesterday doesn't work in my PC, instead, the manually import works perfectly such in Firefox as Chrome.
Kind regards.

@donskov
Copy link
Collaborator

donskov commented Sep 14, 2021

@microshine Can we automate this work?
Related to PeculiarVentures/fortify#409

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants