I get - ERROR: EncryptionPublicKeyInvalidType(1412)
I get the same error doing the "curl" hack to try to upload the key.
Key it seems indeed invalid.

I did all steps involved in the document at:
http://code.google.com/googleapps/domain/audit/docs/1.0/audit_developers_guide_protocol.html
Specifically:
http://code.google.com/googleapps/domain/audit/docs/1.0/audit_developers_guide_protocol.html#generating_key

The issue i believe is that the Document is OVER 3 years old, and
simple says "USE DEFAULTS."  How empirical of them.. so what were the
defaults then?  What are the specifics... I used GPG, disabled
signing, I made the e-mail address in the cert the apps admin account
user, exported teh public key, and then I converted it to Base64 with
the website provided, pasted in to the below and even tried HARD
CODING it as a string.  Please advise : )

Best Regard,
Dan


-- JAVA CODE AS FOLLOWS
        public void uploadNewPublicKey()
        {
                System.out.println("");
                System.out.println("");
                String strPublicKey = ""; //String for public key

                try {
                        System.out.println("\t\t\t== Please Enter Public Key 
Below ==");
                        System.out.println("");
                        System.out.println("\t\t!! IMPORTANT !!");
                        System.out.println("\t\t\t When DONE type \"end\" and 
hit [enter]
on a new line");
        
System.out.println("=============================================================");
/*                      //Setup Stream Reader (input)
                        InputStreamReader isrStreamReader = new
InputStreamReader(System.in);
                        BufferedReader brInputReader = new 
BufferedReader(isrStreamReader);

                        strPublicKey = brInputReader.readLine();
*/
                        Scanner stdin = new Scanner(new 
BufferedInputStream(System.in));
                        String strLineCheck = "";  // Reads Each Line

                        if (stdin.hasNext()) {
                                strPublicKey = stdin.nextLine();
                        while (stdin.hasNext()) {
                                        strLineCheck = stdin.nextLine();
                                        if (strLineCheck.equals("end"))
                                        {
                                                break;
                                        }
                                        strPublicKey = strPublicKey + "\r\n" + 
strLineCheck;
                                        //strPublicKey = strPublicKey + \n" + 
strLineCheck;
                                        //strPublicKey = strPublicKey + 
strLineCheck;
                        } // END - while (stdin.hasNext()) {
                        }
                        else
                        {
                                System.out.println("Error");
                                return;
                        }

                if (strPublicKey.equals(null) || strPublicKey.equals("")) {
                                System.out.println("ERROR: NO KEY SPECIFIED - 
Exiting");
                                return;
                        }

                        System.out.println("");
                        System.out.println("");
                        System.out.println("\t\t\t== Key Entered ==");
                        System.out.println(strPublicKey);
        
System.out.println("====================================================================");
                        System.out.print("Submit? Type Y/ES or [N/O]:  ");

                        int intSelection = System.in.read(); // Read Entry

                        switch (intSelection) {  //Goto appropriate Entry
                                case 'N':  return;
                                case 'n':  return;
                                case 'Y':  break;
                                case 'y':  break;
                                default:
                                        return;
                        } // END switch (intSelection)


                        // Start New Audit Service
                        AuditService service = new AuditService(strAdminEMail, 
strAdminPW,
strAppDomain, "example.com-auditapp-v1");
                        try {

                                GenericEntry geUploadPublicKey =
service.uploadPublicKey(strPublicKey);
                                String strStatus = 
geUploadPublicKey.getProperty("status");

                        } catch (AppsForYourDomainException e2) {
                                System.out.println("ERROR: " + 
e2.getErrorCode());
                        }
                } catch (Exception e) {
                                e.printStackTrace();
                }
        } // END - public void uploadNewPublicKey()

================== OF FURTHER NOTE - TYPOs in Example
=========================
Reference:
http://code.google.com/googleapps/domain/audit/docs/1.0/audit_developers_guide_protocol.html#creating_mailbox_export_example

In the request mailbox export  - the java code below is typo'd as a
Generic entry doesn't have those functions.. Probably a
mailboxDumpEntry.getProperty() or some type.. I can debug and figure
that out if i can get that far.

                  String requestId = mailboxDumpEntry.getRequestId();
                  String status = mailboxDumpEntry.getStatus();
                  String numberOfFiles =
mailboxDumpEntry.getNumberOfFiles();

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to