Close #199: Templates and Key Identifiers

Extend all 3 templates.
Skip AKID for self-signed certificates.

Visualize this by disabling the AKID checkbox
if a self-signed certificate is going to be created.
This commit is contained in:
Christian Hohnstaedt 2024-09-29 12:51:45 +02:00
parent 2bb89cb8c0
commit 4b76522d9e
5 changed files with 17 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1594,5 +1594,21 @@
</hint>
</hints>
</connection>
<connection>
<sender>selfSignRB</sender>
<signal>toggled(bool)</signal>
<receiver>authKey</receiver>
<slot>setDisabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>372</x>
<y>319</y>
</hint>
<hint type="destinationlabel">
<x>625</x>
<y>172</y>
</hint>
</hints>
</connection>
</connections>
</ui>

View File

@ -47,7 +47,6 @@ x509v3ext NewX509::getSubKeyIdent()
return ext;
}
x509v3ext NewX509::getOCSPstaple()
{
x509v3ext ext;
@ -61,7 +60,7 @@ x509v3ext NewX509::getOCSPstaple()
x509v3ext NewX509::getAuthKeyIdent()
{
x509v3ext ext;
if (!authKey->isChecked() || !authKey->isEnabled())
if (!authKey->isChecked() || !authKey->isEnabled() || selfSignRB->isChecked())
return ext;
QString x = "keyid,issuer";