Posting self-answered questions, while permitted and even encouraged, can be risky, because it can easily come across as self-promotion or soapboxing, or as fishing for rep by posting useless trivia.
In general, the safest way to contribute to SO (in terms of avoiding criticism and downvotes) is by answering questions. That's because, when you answer a question that someone else posted, you're implicitly contributing information that someone else is interested in. Thus, unless your answer is clearly incorrect, harmful or redundant, it's unlikely to get downvoted.
Asking questions is somewhat more risky; to earn upvotes on your question, you have to convince others that it's 1) on topic, 2) not already trivially answered elsewhere, and 3) at least potentially of interest to more people than just yourself. If the reason for your question seems to be just that you didn't read the manual, that you've made some silly mistake, or that you're trying to do some weird and ass-backwards thing that no reasonable person would do, you're unlikely to get many upvotes, and may even have your question downvoted.
Even so, asking a normal question does at least carry the implicit presumption that your question makes sense, and that (you believe that) you have a genuine need for an answer. If someone does provide an answer, that further validates those presumptions, at least to some degree.
Asking and self-answering, however, not only carries all the risks of asking questions in the first place, but it also may easily seem as if you're just posting for the sake of enjoying seeing your own words on the page (or to promote your own views or projects, or to try to make you look smart by answering problems that are entirely of your own devising). Basically, people tend to view self-answered questions more suspiciously because self-answering bypasses one of the basic built-in safeguards of the SE Q&A model: requiring at least two people to be interested in a question for it to be answered.
So, how do you safely post a self-answered question, then? Well, sometimes there may be no problem at all; if the question is clearly interesting, and the answer clearly valid and well written, then you're unlikely to get any downvotes.
In some cases, you may want to include a brief note in your question or answer explaining what you're doing, and why. For example, if you're trying to provide a "canonical" Q&A on a subject that has been touched on by many previous questions, you may wish to note this for the benefit of readers who haven't seen those previous questions.
You may also want to avoid giving the impression that you're trying to unfairly pre-empt your question being (better) answered by others. In some cases, just a brief note saying "I've provided my own answer below, but I'd be glad to receive any better solutions" may suffice for this. For "canonical" questions, especially where the idea is to collect scattered information into a single, definitive answer, making your answer a Community Wiki so that others can freely improve it (and noting so in the text) may be useful. In some cases, you may even wish to delay posting your own answer, and wait to see if someone else will answer your question first.
As for your example question and answer, to me the biggest issue with it (besides the fact that it's about a somewhat obscure subject, and that its topicality on SO might be considered marginal) is that it basically seems to be just a correction to a shortcoming in your previous Q&A. Thus, I don't see a good reason why you needed to post a separate question and answer about it, when you could've just edited your previous answer to describe the improved solution and its advantages.
Granted, since I'm hardly an expert on the OpenSSL toolchain (although I do know something about it), my impression could be mistaken. But the situation sure looks like this:
Q1: How do I do X?
A1: Figured it out, I need to do foo.
...later...
Q2: Now I need to do this other similar thing Y, but foo doesn't work. What can I do instead?
A2: Oh, it turns out foo only works for X, not Y. Doing bar will solve both problems.
when you could've just skipped Q2 and A2, and simply edited A1 into:
A1 (edited): Do bar; besides X, it will also solve the related issue Y.
and possibly also edited Q1 into:
Q1 (edited): How can I do the generic thing Z (e.g. X or Y)?
It seems quite plausible that others may have also picked up on this redundancy, which is why your later Q&A pair didn't get such a positive reception as the earlier one.
(Or, of course, it might just be down to bad luck, or the fact that SO culture has become a lot more critical of new questions as the site has grown over the three years between your questions. But the apparent redundancy surely didn't help.)