mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-22 13:44:34 +03:00
c6f4f44619
The re-enables the UI, uses Qt API for importing and stores the certificate/key in the system keychain. People who had set up client certs need to re-setup the account. This is ok since it was an undocumented feature anyway.
183 lines
4.5 KiB
XML
183 lines
4.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>OCC::AddCertificateDialog</class>
|
|
<widget class="QDialog" name="OCC::AddCertificateDialog">
|
|
<property name="windowModality">
|
|
<enum>Qt::ApplicationModal</enum>
|
|
</property>
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>462</width>
|
|
<height>188</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>SSL client certificate authentication</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<widget class="QLabel" name="labelErrorMessage">
|
|
<property name="text">
|
|
<string>This server probably requires a SSL client certificate.</string>
|
|
</property>
|
|
<property name="wordWrap">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QFormLayout" name="formLayout">
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="labelCertificateFile">
|
|
<property name="text">
|
|
<string>Certificate & Key (pkcs12) :</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<item>
|
|
<widget class="QLineEdit" name="lineEditCertificatePath">
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="pushButtonBrowseCertificate">
|
|
<property name="text">
|
|
<string>Browse...</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="labelPWDCertificate">
|
|
<property name="text">
|
|
<string>Certificate password :</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QLineEdit" name="lineEditPWDCertificate">
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="echoMode">
|
|
<enum>QLineEdit::Password</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="labelErrorCertif">
|
|
<property name="palette">
|
|
<palette>
|
|
<active>
|
|
<colorrole role="Text">
|
|
<brush brushstyle="SolidPattern">
|
|
<color alpha="255">
|
|
<red>231</red>
|
|
<green>23</green>
|
|
<blue>12</blue>
|
|
</color>
|
|
</brush>
|
|
</colorrole>
|
|
</active>
|
|
<inactive>
|
|
<colorrole role="Text">
|
|
<brush brushstyle="SolidPattern">
|
|
<color alpha="255">
|
|
<red>231</red>
|
|
<green>23</green>
|
|
<blue>12</blue>
|
|
</color>
|
|
</brush>
|
|
</colorrole>
|
|
</inactive>
|
|
<disabled>
|
|
<colorrole role="Text">
|
|
<brush brushstyle="SolidPattern">
|
|
<color alpha="255">
|
|
<red>127</red>
|
|
<green>127</green>
|
|
<blue>127</blue>
|
|
</color>
|
|
</brush>
|
|
</colorrole>
|
|
</disabled>
|
|
</palette>
|
|
</property>
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
<property name="wordWrap">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="verticalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="QDialogButtonBox" name="buttonBox">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="standardButtons">
|
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<resources/>
|
|
<connections>
|
|
<connection>
|
|
<sender>buttonBox</sender>
|
|
<signal>accepted()</signal>
|
|
<receiver>OCC::AddCertificateDialog</receiver>
|
|
<slot>accept()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>248</x>
|
|
<y>254</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>157</x>
|
|
<y>274</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>buttonBox</sender>
|
|
<signal>rejected()</signal>
|
|
<receiver>OCC::AddCertificateDialog</receiver>
|
|
<slot>reject()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>316</x>
|
|
<y>260</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>286</x>
|
|
<y>274</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
</ui>
|