Enforce some restrictions on SSL certificate properties.
[dcpomatic.git] / src / wx / make_signer_chain_dialog.h
index 6d018c0dc021ebb109612a8b0b225d987e46d6f5..d05b4381f831b627ba726612c5362535c1c43c6c 100644 (file)
@@ -34,15 +34,15 @@ public:
        }
 
        std::string root_common_name () const {
-               return wx_to_std (_root_common_name->GetValue ());
+               return "." + wx_to_std (_root_common_name->GetValue ());
        }
 
        std::string intermediate_common_name () const {
-               return wx_to_std (_intermediate_common_name->GetValue ());
+               return "." + wx_to_std (_intermediate_common_name->GetValue ());
        }
 
        std::string leaf_common_name () const {
-               return wx_to_std (_leaf_common_name->GetValue ());
+               return "CS." + wx_to_std (_leaf_common_name->GetValue ());
        }
 
 
@@ -53,4 +53,3 @@ private:
        wxTextCtrl* _intermediate_common_name;
        wxTextCtrl* _leaf_common_name;
 };
-