-
Notifications
You must be signed in to change notification settings - Fork 20
Automatically select client certificate in Chrome #373
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
Comments
Hello, currently only servers CA can be imported to pod:
https://aerokube.com/moon/latest/#ca-certs
We will consider implementation of mutual client TLS authentication for
browser in further releases.
ср, 8 мар. 2023 г. в 12:16, cr-liorholtzman ***@***.***>:
… The company I'm working in is currently considering using Moon to replace
Zalenium since it's not possible to use client-certificate when working
with Zalenium
To work with a client certificate and use chrome, it is required to import
it to the pod and also set "AutoSelectCertificateForUrls".
Is it something we can do using Moon? even if it means setting some
specific environment variables?
—
Reply to this email directly, view it on GitHub
<#373>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKY23NFPUXD4JBFQPK7ZP3W3BE53ANCNFSM6AAAAAAVTQQWNA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hello, after deeper investigation, i have found that client mutual TLS
authentication only requires client cert and key installed in browser
profile, that is already implemented in Moon, how to upload custom browser
profile to moons browser pod you can find here:
https://blog.aerokube.com/selenium-moon-environment-provisioning-72402242c917
ср, 8 мар. 2023 г. в 12:41, Alexander Andryashin ***@***.***>:
… Hello, currently only servers CA can be imported to pod:
https://aerokube.com/moon/latest/#ca-certs
We will consider implementation of mutual client TLS authentication for
browser in further releases.
ср, 8 мар. 2023 г. в 12:16, cr-liorholtzman ***@***.***>:
> The company I'm working in is currently considering using Moon to replace
> Zalenium since it's not possible to use client-certificate when working
> with Zalenium
>
> To work with a client certificate and use chrome, it is required to
> import it to the pod and also set "AutoSelectCertificateForUrls".
> Is it something we can do using Moon? even if it means setting some
> specific environment variables?
>
> —
> Reply to this email directly, view it on GitHub
> <#373>, or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAKY23NFPUXD4JBFQPK7ZP3W3BE53ANCNFSM6AAAAAAVTQQWNA>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
|
Hi, Thank you |
Have you added chrome argument --user-data-dir to point to your custom
profile?
чт, 2 мая 2024 г. в 10:29, slunyaak ***@***.***>:
… Hi,
uploading new profile in Moon pod works. But the question is how to add
into profile client certificate. I have tried following: I started Moon
Chrome browser, imported in it required client certificate for mutual TLS
authentication and then downloaded profile. After that I followed
instruction from Moon documentation in order to upload custom Chrome
profile. I did make sure, that upload of new profile was successful.
Unfortunately this solution did not worked. The client certificate was not
present in the Moon browser after profile upload. After that I investigated
that subject a little bit and I found that client certificates aren't
normally stored in Chrome profile, but in host OS. So could you please
advise, how to make working following solution "client mutual TLS
authentication only requires client cert and key installed in browser
profile"?
Thank you
—
Reply to this email directly, view it on GitHub
<#373 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKY23IU3D6T2FA6SE3YZOLZAHTMHAVCNFSM6AAAAAAVTQQWNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBZG44TKMRZHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Yes, I have added it, this is used code:
|
Hello!
After installing the certificate in the browser you have to download not a
profile and /home/user/.pki directory that will contain your installed
certificate, then you can upload it to moon pod using moon context feature.
Sorry for the confusion. Actually context allows you to upload any custom
user's configuration.
чт, 2 мая 2024 г. в 16:15, slunyaak ***@***.***>:
… Yes, I have added it, this is used code:
ChromeOptions options = new ChromeOptions();
options.setCapability("moon:options", Map.of("context", "http://WWeebbHHoosstt/profile.tar.gz"));
options.addArguments("--user-data-dir=/home/user/profile");
try {
WebDriver driver = new RemoteWebDriver(new URL("http://MMoonnHHoosstt/wd/hub"), options);
} catch (MalformedURLException e){
}
—
Reply to this email directly, view it on GitHub
<#373 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKY23JHKXXAEQKWO2HH4PLZAI36FAVCNFSM6AAAAAAVTQQWNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJQGQ3TGNJUHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi, thank you!, Uploading /home/user/.pki with imported client certificate using Moon context feature was the right solution. |
@slunyaak so this is now resolved, right? |
@vania-pooh Hi, uploading certificate works perfectly, thanks! But now we are facing new issue with confirming certificate selection in Chrome browser running in Moon. We have imported there just one certificate , but we have issue making Selenide to click on "OK" button in order to confirm certificate selection. We have tried to resolve that by defaulting certificate using AutoSelectCertificateForUrls, but required directories for storing auto_select_certificate.json in pod cannot be located. Could you please advice, how to solve it? |
@slunyaak this seems to be your project specific issue. Please provide more details on what should be clicked, e.g. a screenshot. |
@aandryashin any ideas? |
Ihmo you should be able to click on this button using selenium.
ср, 21 авг. 2024 г., 13:02 Ivan Krutov ***@***.***>:
… @aandryashin <https://github.com/aandryashin> any ideas?
—
Reply to this email directly, view it on GitHub
<#373 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKY23NBHIC54VJ5AXXOMTDZSRQSFAVCNFSM6AAAAAAVTQQWNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBRGY2TMNZYHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
My colleague has unsuccessfully tried couple of these following approaches: A. B. C. D. What is please your suggestion? |
Try to use plain selenium instead of selenide.
ср, 21 авг. 2024 г., 13:31 slunyaak ***@***.***>:
… My colleague has unsuccessfully tried couple of these following approaches:
A.
Selenide.confirm("OK");
B.
Selenide.confirm();
C.
Selenide.switchTo().alert().accept();
D.
RobotWriter robotWriter = new RobotWriter();
robotWriter.tab();
robotWriter.tab();
robotWriter.tab();
robotWriter.enter();
What is please your suggestion?
—
Reply to this email directly, view it on GitHub
<#373 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKY23OQYLIHT3NVDMFAWFTZSRUAPAVCNFSM6AAAAAAVTQQWNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMBRG4YTGNBSG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
We've tried to use the Actions class from Selenium for pressing the TAB and ENTER keys to confirm the popup, but without success. From several discussions on Stackoverflow, it seems to me that this is an OS popup and therefore it cannot be confirmed even using pure Selenium. Do you have any other suggestions for us @aandryashin? |
We will check it and update you.
пн, 2 сент. 2024 г., 10:56 phillwhite ***@***.***>:
… We've tried to use the Actions class from Selenium for pressing the TAB
and ENTER keys to confirm the popup, but without success. From several
discussions on Stackoverflow, it seems to me that this is an OS popup and
therefore it cannot be confirmed even using pure Selenium. Do you have any
other suggestions for us @aandryashin <https://github.com/aandryashin>?
—
Reply to this email directly, view it on GitHub
<#373 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKY23JOZBHZ2LQCE65444DZUQKZ7AVCNFSM6AAAAAAVTQQWNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRUGA3DCNRQHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
After investigation we have found the way to auto select client
certificates in the chrome browser. We have added capability to turn it on,
this feature will be available in the next release.
Alexander Andryashin.
пн, 2 сент. 2024 г. в 12:21, Alexander Andryashin ***@***.***>:
… We will check it and update you.
пн, 2 сент. 2024 г., 10:56 phillwhite ***@***.***>:
> We've tried to use the Actions class from Selenium for pressing the TAB
> and ENTER keys to confirm the popup, but without success. From several
> discussions on Stackoverflow, it seems to me that this is an OS popup and
> therefore it cannot be confirmed even using pure Selenium. Do you have any
> other suggestions for us @aandryashin <https://github.com/aandryashin>?
>
> —
> Reply to this email directly, view it on GitHub
> <#373 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAKY23JOZBHZ2LQCE65444DZUQKZ7AVCNFSM6AAAAAAVTQQWNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRUGA3DCNRQHA>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>
|
Need to document |
Hello,
The feature is released in 2.7.2, please check it:
https://aerokube.com/moon/latest/#capability-auto-select-client-certs
чт, 5 сент. 2024 г. в 22:01, Alexander Andryashin ***@***.***>:
… After investigation we have found the way to auto select client
certificates in the chrome browser. We have added capability to turn it on,
this feature will be available in the next release.
Alexander Andryashin.
пн, 2 сент. 2024 г. в 12:21, Alexander Andryashin ***@***.***>:
> We will check it and update you.
>
> пн, 2 сент. 2024 г., 10:56 phillwhite ***@***.***>:
>
>> We've tried to use the Actions class from Selenium for pressing the TAB
>> and ENTER keys to confirm the popup, but without success. From several
>> discussions on Stackoverflow, it seems to me that this is an OS popup and
>> therefore it cannot be confirmed even using pure Selenium. Do you have any
>> other suggestions for us @aandryashin <https://github.com/aandryashin>?
>>
>> —
>> Reply to this email directly, view it on GitHub
>> <#373 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/AAKY23JOZBHZ2LQCE65444DZUQKZ7AVCNFSM6AAAAAAVTQQWNCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMRUGA3DCNRQHA>
>> .
>> You are receiving this because you were mentioned.Message ID:
>> ***@***.***>
>>
>
|
The company I'm working in is currently considering using Moon to replace Zalenium since it's not possible to use client-certificate when working with Zalenium
To work with a client certificate and use chrome, it is required to import it to the pod and also set "AutoSelectCertificateForUrls".
Is it something we can do using Moon? even if it means setting some specific environment variables?
The text was updated successfully, but these errors were encountered: