473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Zertifizierungsserver verweigert die Zertifikatsanfrage

Hallo An alle

obwohl ich hier in VB 6.0 entwickle sztelle ich diese frage in diesem
Forum, da ich mir nicht anders helfen kann. In einem anderen Forum habe
ich bis jetzt noch keine Antwort zu diesem Problem erhalten.
Situation:
----------
Ich habe einen Zertifikatserver (Windows 2003 Entprise) am laufen.
Auf einem anderen Rechner läuft ein VB Programm, dass Zertifikate
beantragt. Dieser Rechner ist in der gleichen Domäne und hat Zugriffsrechte.

Wenn ich mit dem Visual basic 6.0 Programm ein Zertifikatsrequest
durchführe kommt folgende Fehlermeldung:

Fehlermeldung:
---------------
Verweigert vom Richtlinienmodul 0x80094801. Die Anforderung enthält
werder die Erweiterung für die Zertifikatvorlage, noch das
Anforderungsattribut "CertificateTemplate"

Was soll mir diese Fehlermeldung sagen ?
Ich habe den Code unten angehängt.

Auf dem Zertifizierungsserver sehe ich diese fehlgeschlagene Anfrage in
der Liste der "fehlgeschlagenen Anforderungen". Das heisst also, die
Anfrage wird eigentlich korrekt abgesetzt, nur irgend wie ist die
Anfrage fehlerhaft bzw. unvollständig. Was fehlt denn da ?
Ichhabe das Beispiel aus dem Buch "Developing Secure Applications with
Visual Basic"
Hier der Code:

------------------------------------------------
Public Function DoCertRequest() As Boolean

DoCertRequest = False

Dim strDN As String
Dim strReq As String
Dim lDisp As Long
Dim strMsg As String

On Error GoTo DoCertReqErr
strDN = "CN=" & m_strUserName + ",OU=" + m_strUnit + ",O=" +
m_strOrganization + ",L=" + m_strCity + ",S=" + m_strState + ",C=" +
m_strCountry
If (m_strEMail <> "") Then
strDN = strDN + ",E=" & m_strEMail
End If

m_objXen.KeySpec = m_lKeySpec

strReq = m_objXen.createPKCS10(strDN, "1.3.6.1.4.1.311.2.1.21")
'm_strKeyUsage)
lDisp = m_objReq.Submit(CR_IN_BASE64 Or CR_IN_PKCS10, strReq, "",
Trim(m_strServer) + "\" + Trim(m_strCA))
strMsg = m_objReq.GetDispositionMessage

MsgBox strMsg, vbOKOnly, "Zertifikatsanfrage"
If ((lDisp = CR_DISP_INCOMPLETE) Or (lDisp = CR_DISP_ERROR) Or (lDisp =
CR_DISP_DENIED)) Then
Exit Function
End If
m_lReqID = m_objReq.GetRequestId
If (lDisp = CR_DISP_ISSUED) Or (lDisp = CR_DISP_ISSUED_OUT_OF_BAND) Then
If Not GetCert() Then Exit Function
End If

DoCertRequest = True

Exit Function

DoCertReqErr:

MsgBox "Fehler#" & Err.Number & " ( " & Err.Description & ")",
vbCritical, "Fehler"

End Function

--------------------------------------------------------------

in der Zeile : 'lDisp = m_objReq.Submit(CR_IN_BASE64 Or CR_IN_PKCS10,
strReq, "", Trim(m_strServer) + "\" + Trim(m_strCA))
' wird dieser Fehler erzeugt und die Zeile 'strMsg =
m_objReq.GetDispositionMessage' ruft die Fehlermeldung vom Server ab.
Ich habe keinen Schimmer warum das nicht geht, denn auf der MSDN Site
ist diese Submit Zeile genauso angegeben.
Bin um jeden Hinweis und Tip froh.

Danke

Nikolai Wylutzki
Dec 13 '05 #1
2 3940
"Nikolai Wylutzki" <"NikolaiWylutzki"@newsgroups.nospam> schrieb:
obwohl ich hier in VB 6.0 entwickle sztelle ich diese frage in diesem
Forum, da ich mir nicht anders helfen kann. In einem anderen Forum habe
ich bis jetzt noch keine Antwort zu diesem Problem erhalten.


Die Wahrscheinlichkeit, hier, in einer englischsprachigen Newsgroup zu
VB.NET, eine Antwort auf eine deutschsprachig formulierte VB6-Frage zu
erhalten, ist wohl verschwindend gering. Du solltest stattdessen die Frage
auf Englisch formulieren und in eine der Newsgroups in der Hierarchie
"microsoft.public.vb.*" posten.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 13 '05 #2
Herfried,

Die Wahrscheinlichkeit, hier, in einer englischsprachigen Newsgroup zu
VB.NET, eine Antwort auf eine deutschsprachig formulierte VB6-Frage zu
erhalten, ist wohl verschwindend gering. Du solltest stattdessen die Frage
auf Englisch formulieren und in eine der Newsgroups in der Hierarchie
"microsoft.public.vb.*" posten.

--

A little translation for those who don't speak German. You can give now the
idea that you are answering the question of the OP in German.
----------------------------------------
The change, here, in a English language newsgroup for VB.Net, to become an
answer on an in the German language formulated VB-6 Question is very small.
Therefore you would have to do that in English and post that in a Newsgroup
in the categorie microsoft.public.vb*.
----------------------------------------

Do you next time it yourself again

:-)

Thanks in advance

Cor

Dec 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
0
by: Markus Poehler | last post by:
Hi my program should run on terminal server. I open Acrobat process and I have to kill them at some points in my application. This fails cause of insufficient rights on terminal server. the...
25
by: Merrill & Michele | last post by:
Many of us watched the World Series of Poker this last week and plotted how we were to take over that world. My current problem begins with shuffling the deck. For the apps I've written before,...
3
by: feel | last post by:
Goin' crazy with this recursive function ported from delphi... I send a string like DirA/ DirB /DirC but i get in the treeView each one in a new node.Cant get the child node....!! -DirA -DirB...
3
by: Jeffrey | last post by:
hello, I have to call the Handle from a process and FullTrust is needed otherwise it happens an exception. currently i am using only this code and the exception occurs.
3
by: Holger (David) Wagner | last post by:
I'm trying to start a process from an ASP.NET Web application. The reason I need this is to encapsulate a (unmanaged) DLL that sometimes crashes. If I run this DLL directly with P/Invoke from...
3
by: markus.rietzler | last post by:
i want to do (multiple) file upload(s) and display a progress bar. with firefox and safari it is no problem at all. only IE makes some problems. my script is based on ajax-uploader, which can be...
2
by: Weedget | last post by:
Hello! I've small problem with my JS code. On my page i've button which executes code from below: var newWindow; var props =...
12
by: Rainer Queck | last post by:
Hi NG, I have no idea why, but since a while a dataset refuses to write to a specific xml file. I get the error message "Der Zugriff auf den Pfad...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.