Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Security Signing of VBA Code

Can anyone enlighten me on how to obtain a digital signature for Excel VBA
code that I might wish to share with, or make commercially available to,
others. Currently, the user must lower the Macro Security level down to
allow my code to run. This is not desirable in many offices where the local
IT guy has concerns about viruses.

Who issues digital signatures? What is the process? What does it cost?

I am sure that this group knows all about the subject.

Dan Fisher


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default Security Signing of VBA Code


u can generate ur own private digital key : just find file selfcert.exe
then make ur own certificate. Then u must add this certificate to every vba
project u wonna sign (vba options: tools\digital signature...)
After this user will be notified that file is signed by ur signature and
can decide wheather insall this certificate or not. If one agree this file
will open without macro warning prompt but vba code mustn't be modified on
any other machine than urs ( or certificate will be removed from modified
file )

G.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 195
Default Security Signing of VBA Code

Snake Plissken wrote

Then u must add this certificate to every vba
project u wonna sign (vba options: tools\digital signature...)


I'm exploring this option, too. I have workbooks that contain sheet level,
workbook level and module level code. Do I have to add to each? Each Sub()
within each? What about Forms?

If one agree this file will open without macro warning prompt but vba
code mustn't be modified on any other machine than urs (or certificate
will be removed from modified file)


Well, that defies the term 'Security', does it not?

Trying to understand.

--
David
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default Security Signing of VBA Code





I'm exploring this option, too. I have workbooks that contain sheet
level,
workbook level and module level code. Do I have to add to each? Each
Sub()
within each? What about Forms?


u sign only project ( project includes every object within opened file )

If one agree this file will open without macro warning prompt but vba
code mustn't be modified on any other machine than urs (or certificate
will be removed from modified file)


Well, that defies the term 'Security', does it not?


right - only author can modify own projects without removing the
certificate from certain file ( author means user logged on his machine -
as far as i remember both info is stored in certificate )

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Security Signing of VBA Code

I remember reading a Microsoft article a couple years back that you can make
a portable certificate that will allow you to work on a project from 2
different machines without one trashing the others cert. I never followed up
on trying it though, I still let work and home trash each others cert.

Mike F
"Snake Plissken" wrote in message
...




I'm exploring this option, too. I have workbooks that contain sheet
level,
workbook level and module level code. Do I have to add to each? Each
Sub()
within each? What about Forms?


u sign only project ( project includes every object within opened file )

If one agree this file will open without macro warning prompt but vba
code mustn't be modified on any other machine than urs (or certificate
will be removed from modified file)


Well, that defies the term 'Security', does it not?


right - only author can modify own projects without removing the
certificate from certain file ( author means user logged on his machine -
as far as i remember both info is stored in certificate )





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Security Signing of VBA Code

Not sure self cert is the way to go if this is going to be something you
sell. You might check out these articles:

nything in these to help?



http://msdn.microsoft.com/library/de.../odc_dsvba.asp
Code Signing Office XP Visual Basic for Applications Macro Projects

http://support.microsoft.com/default...;en-us;Q288985
XL2002: About Digital Signatures in Excel Workbooks

http://support.microsoft.com/default...38&Product=ofw
About Digital Signatures and Code Signing in Workbooks in Excel 2003

http://support.microsoft.com/?KBID=206637
OFF2000: Overview of Digital Certificates (Q206637)

http://support.microsoft.com/?KBID=217221
OFF2000: Using SelfCert to Create a Digital Certificate for VBA Projects
(Q217221)

An Overview:
http://msdn.microsoft.com/library/de...tml/combat.asp

Another reference:
http://msdn.microsoft.com/library/en...vbaproject.asp



http://support.microsoft.com/default...;en-us;Q329228
OFFXP: How to Make Sure That Your Office Document Has a Valid Digital
Signature


http://office.microsoft.com/assistan...ustworthy.aspx
How to Tell if Digital Certificate Is Trustworthy in Office XP

Regards,
Tom Ogilvy




"Dan Fisher" wrote in message
news:hzAJe.77983$4o.44506@fed1read06...
Can anyone enlighten me on how to obtain a digital signature for Excel VBA
code that I might wish to share with, or make commercially available to,
others. Currently, the user must lower the Macro Security level down to
allow my code to run. This is not desirable in many offices where the

local
IT guy has concerns about viruses.

Who issues digital signatures? What is the process? What does it cost?

I am sure that this group knows all about the subject.

Dan Fisher




  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 158
Default Security Signing of VBA Code

makecert.exe (rather than selfcert) allows you to make a portable key.

http://www.source-code.biz/snippets/vbasic/3.htm

HTH,
Gareth

Mike Fogleman wrote:
I remember reading a Microsoft article a couple years back that you can make
a portable certificate that will allow you to work on a project from 2
different machines without one trashing the others cert. I never followed up
on trying it though, I still let work and home trash each others cert.

Mike F
"Snake Plissken" wrote in message
...



I'm exploring this option, too. I have workbooks that contain sheet
level,
workbook level and module level code. Do I have to add to each? Each
Sub()
within each? What about Forms?


u sign only project ( project includes every object within opened file )


If one agree this file will open without macro warning prompt but vba
code mustn't be modified on any other machine than urs (or certificate
will be removed from modified file)

Well, that defies the term 'Security', does it not?


right - only author can modify own projects without removing the
certificate from certain file ( author means user logged on his machine -
as far as i remember both info is stored in certificate )




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code signing a VBA macro in 2002 and 2003 Stephen Davies Excel Programming 5 April 6th 05 02:03 AM
Wouldn't it be nice - Code Signing in Bulk Walt Weber[_2_] Excel Programming 6 March 3rd 05 06:33 PM
Signing VBA code within an Excel spreadsheet from VBA Martin Waller Excel Programming 3 September 7th 04 12:29 PM
Code-signing certificate problems in Excel 2000 with Windows 2000 Aaron Queenan Excel Programming 0 May 6th 04 11:35 AM
VBA Code Signing Bruno Guillemette Excel Programming 0 July 25th 03 08:41 PM


All times are GMT +1. The time now is 06:30 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"