Skip to main content
 
developerWorks
AIX and UNIX
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Java™ technology
Linux
Open source
SOA and Web services
Web development
XML
My developerWorks
About dW
Submit content
Feedback



developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 4 and 5 Forum

Notes/Domino 4 and 5 Forum

developerWorks

  

Sign in to participate PreviousPrevious NextNext

Encrypt database with other user's public key
Justin Ryall 12.Aug.10 05:03 PM a Web browser
Lotus Tools -- C API All Releases All Platforms

I have a project with a requirement to have all databases encrypted on one of several Domino servers.

I have an agent that runs on one of the servers to create replica databases on one of the other servers (round-robin).

Now that encryption has surfaced, I'm trying to find a way for my agent to encrypt the database with teh public keys of the server that will hold the replica.

I've seen NSFDbCreateExtended, but this encrypts the database with the public key of the agent signer.

Looking at the client, it's possible to set encryption on a database and use another user's keys (there's even a warning pop-up). I can't seem to find a (supported) method to accomplish my goal.

I put Notes under a debugger to see if I could find the call that actually does this (to try to find an UNsupported way to do this).

The function seems to call NSFDbLocalSecInfoSet, but this is an undocumented API call (so undocumented, I found ONE reference using google, that pointed to someone else calling out undocumented functions).

Has anyone else found a way to do this? Because this would be server-side agents, no UI stuff. I'm wondering - do I need to create a server-side agent on each server (signed with that server's ID) and call that agent when I want to encrypt?

I'm using 7.0.3, but could be convinced to upgrade the server running this agent.

The code snippet (at the moment) looks like:

If W32_NSFDbCreateExtended ("test.nsf",0, 1, 1, 2, 0) = 0 Then
Set oNotesNewDatabase = oNotesSession.GetDatabase("", "test.nsf")
oNotesNewDatabase.Compact

.
.
End If

Thanks in advance for any advice.






  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Author
Category
Platform
Release
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds

 Resources
Forum use and etiquette
Native Notes Access
Web site Feedback

  Lotus Support
Lotus Support
Product support pages index
Search knowledge base (Technotes)
Search support downloads
Lotus Support RSS

 Wikis
IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
Notes/Domino 4 and 5
IBM Connections
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
IBM SmartCloud Meetings
IBM Web Content Manager
Lotus Domino Document Manager
Lotus e-learning
Lotus Enterprise Integration
Lotus Expeditor
Lotus Protector
Lotus Quickr
Lotus SmartSuite
Lotus Symphony
Lotus Symphony Developer Toolkit Support
Lotus Workflow